Without doing cd try

```
emake -C src distclean PLATFORM=octave
```

I don't think add ${S} is necessary you are already in the right place when entering src_prepare.