I'm writing a makefile that compiles a .java file in a different directory, and then I want to run it without changing directories. I want to do something along the lines of:
$(SQM_JAVA_TOOL_DONE) : $(SQM_JAVA_TOOL)
$(shell cd /home_dir)
javac myjavafile.java
java myjavafile
where the java file is /home/myjavafile.java
the makefile isn't running from /home
.
Any suggestions?