This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Executing javac and jar from automake
- From: John Ling <jling at bioinformatics dot ubc dot ca>
- To: automake at gnu dot org
- Date: Thu, 24 Jun 2004 16:56:39 -0700
- Subject: 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