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]

problem with make install and java


   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 :
	 


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