This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
problem with make install and java
- To: automake at gnu dot org
- Subject: problem with make install and java
- From: "Paul F. Kunz" <Paul_Kunz at slac dot stanford dot edu>
- Date: Wed, 28 Feb 2001 12:29:18 -0800
- List-Id: Discussion list for automake <automake.gnu.org>
- Reply-to: Paul_Kunz at slac dot stanford dot edu
I'm using automake with mix C++ and Java code. Everything is fine,
even the creating of JNI header files, except for one thing. On
"make install", the .class files get copied into the installation
directory. Since, I'm creating a .jar file, which gets installed in
$prefix/share, I don't want the .class files installed.
How do I turn this off?
Here is the relevalent part of my Makefile.am
JAVADOC = @JAVADOC@
JAR = @JAVAPREFIX@/bin/jar
CLASSDIR = $(top_builddir)/hippo
JARPATH = $(top_srcdir)/hippo
CLASSPATH = $(top_srcdir):$(JARPATH)/koala.jar:$(JARPATH)/saxxml.jar
JAVACFLAGS = -g -classpath $(CLASSPATH)
jardir = $(datadir)
jar_DATA = hippo.jar koala.jar saxxml.jar
EXTRA_DIST = hippo.mf.in koala.jar saxxml.jar
javadir = $(prefix)/hippo
java_JAVA = \
AbstractView.java \
[many more .java files deleted]
SUFFIXES = .java .class .jar
hippo.jar : $(java_JAVA)
cd ..; $(JAR) cmf hippo/hippo.mf hippo/hippo.jar hippo/*.class
koala.jar :
saxml.jar :
dummy :