in Education by
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 JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Why not just use android/gradlew assembleRelease? There is some good info elsewhere on SO about why commands like cd won't work as expected in a makefile.

Related questions

0 votes
    Explain how can you make a Python Script executable on Unix?...
asked Dec 7, 2020 in Technology by JackTerrance
0 votes
    I am trying to use aws container service as per the documentation in http://docs.aws.amazon.com/AmazonECS/latest/ ... in a console? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I have a custom PyPi package. It is installed under Pyhon\Python38\Lib\site-packages\myCustomPackage. In the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    Which of the following is mandatory to run before running YSlow? (a) WebPageTest (b) FireBug (c) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What are the resolution steps when Burp does not intercept HTTPS requests? A)Toinstall Burp's CA certificate ... browser configuration. Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    How can set row number for each table row created by dir-paginate angularJs. I use two way code ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 14, 2022 in Education by JackTerrance
0 votes
    What is the use of help() and dir() functions?...
asked Dec 7, 2020 in Technology by JackTerrance
0 votes
    I have a domain model with an aggregate root: public interface IAggregateRoot { public string Id { get; } ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    We've got an interesting case where we are trying to determine how different instances of our app were ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 15, 2022 in Education by JackTerrance
0 votes
    What command is used to go inside a running container? 1. docker sh 2. docker exec -it sh 3. docker access 4. docker ps -a...
asked Jun 22, 2021 in Technology by JackTerrance
0 votes
    What command is used for viewing all running containers? 1. docker ps 2. docker ps -a 3. docker rm 4. docker show...
asked Jun 21, 2021 in Technology by JackTerrance
0 votes
    What command is used for running images as a container? 1. docker ps -a 2. sudo docker run -i -t alpine /bin/bash 3. sudo docker run 4. All of the above...
asked Jun 21, 2021 in Technology by JackTerrance
0 votes
    What command is used for stopping a running container? 1. docker stop 2. docker rm 3. docker kill 4. docker terminate...
asked Jun 21, 2021 in Technology by JackTerrance
0 votes
    Which command is used to show all the Hadoop daemons that are running on the machine? 1.distcp 2.jps 3.fsck...
asked Apr 13, 2021 in Technology by JackTerrance
0 votes
    What is the command used to check the running Splunk processes on Unix/Linux?...
asked Oct 31, 2020 in Technology by JackTerrance
...