automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Executing javac and jar from automake


From: John Ling
Subject: Executing javac and jar from automake
Date: Thu, 24 Jun 2004 16:56:39 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3

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

[Prev in Thread] Current Thread [Next in Thread]