## -*-makefile-*-
##
-## $Id: Makefile.am,v 1.5 2001/02/06 10:06:25 mdw Exp $
+## $Id: Makefile.am,v 1.7 2001/02/19 19:19:21 mdw Exp $
##
## Makefile for Anag
##
##----- Revision history ----------------------------------------------------
##
## $Log: Makefile.am,v $
+## Revision 1.7 2001/02/19 19:19:21 mdw
+## Minor build system fixes.
+##
+## Revision 1.6 2001/02/07 09:09:20 mdw
+## Install Java files in the right place.
+##
## Revision 1.5 2001/02/06 10:06:25 mdw
## Find a suitable Java compiler. If there isn't one, don't compile the
## Java bits.
##
AUTOMAKE_OPTIONS = foreign
-javadir = datadir/java
+javadir = $(datadir)/java
JAVAC = @JAVAC@
anag_SOURCES = anag.c anag.h wildcard.c anagram.c trackword.c util.c
anag.jar: AnagGUI.class
- jar cf anag.jar AnagGUI*.class
+ jar cf anag.jar Anag*.class
+
+doszip: distdir
+ rm -f $(PACKAGE).zip
+ zip -qlr $(PACKAGE).zip $(distdir)
+ rm -rf $(distdir)
EXTRA_DIST = AnagGUI.java
CLEANFILES = *.class *.jar