I have a javac command and a jar command I would simply like to call to build a jar file. I would like to use Automake to do this.

I've tried placing the following in my Makefile.am:

jardir = $(prefix)/jar;
jar_PROGRAMS = jar/project.jar
jar/project.jar :
       javac -sourcepath java -d jar/classes java/testdriver.java;
       jar cvf jar/project.jar -C jar/classes .;

However, when I run make I get:

cd . && \
 /bin/sh /home/jling/test2/missing --run automake-1.7 --gnu  Makefile
Makefile.am: required file `./compile' not found
make: *** [Makefile.in] Error 1


Any suggestions on why this is and how I can execute these two commands?

Thank You,
John Ling





Reply via email to