Bit of a noob question but I'm building an app in react native and to make development a bit faster I'm using a make file for arbitrary commands. I need to run an executable in a sub-directory but can't get this to work while using the Makefile command.
The command works when I cd into the directory then run it but this doesn't work when I use the exact same commands for the make command and I'm sure there's a one line answer to this somewhere but I haven't been able to find it.
Doing this works
user@device:~/project$ cd android
user@device:~/project/android$ ./gradlew assembleRelease
but having it in the makefile like so doesn't
///////// Start of Makefile /////
apk:
cd android/
./gradlew assembleRelease
///// End of file ///////
user@device:~/project$ make apk