This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Executing javac and jar from automake


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]