chiark / gitweb /
build: Fix for newer Auto tools.
[anag] / Makefile.am
CommitLineData
6e403221 1## -*-makefile-*-
2##
e439a998 3## $Id$
6e403221 4##
5## Makefile for Anag
6##
7## (c) 2001 Mark Wooding
8##
9
10##----- Licensing notice ----------------------------------------------------
11##
12## This file is part of Anag: a simple wordgame helper.
13##
14## Anag is free software; you can redistribute it and/or modify
15## it under the terms of the GNU General Public License as published by
16## the Free Software Foundation; either version 2 of the License, or
17## (at your option) any later version.
18##
19## Anag is distributed in the hope that it will be useful,
20## but WITHOUT ANY WARRANTY; without even the implied warranty of
21## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22## GNU General Public License for more details.
23##
24## You should have received a copy of the GNU General Public License
25## along with Anag; if not, write to the Free Software Foundation,
26## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
6e403221 28AUTOMAKE_OPTIONS = foreign
0f01a808 29javadir = $(datadir)/java
0484a0d9 30
31JAVAC = @JAVAC@
32
dc460403 33SUFFIXES = .java .class
dc460403 34.java.class:; $(JAVAC) -d . $<
35
6e403221 36bin_PROGRAMS = anag
50959b4c 37bin_SCRIPTS = @TKPROGS@
38EXTRA_SCRIPTS = anag-gui
39java_DATA = @JARFILES@
6e403221 40
50959b4c 41anag_SOURCES = \
d9af4a2b 42 anag.c anag.h util.c \
94ed9b30 43 wildcard.c anagram.c mono.c trackword.c regexp.c pcre.c longest.c
e439a998 44
dc460403 45anag.jar: AnagGUI.class
d9af4a2b 46 jar cfm anag.jar $(srcdir)/anag.manifest Anag*.class Whinge*.class
f7ebae38 47
48doszip: distdir
49 rm -f $(PACKAGE).zip
50 zip -qlr $(PACKAGE).zip $(distdir)
51 rm -rf $(distdir)
dc460403 52
d9af4a2b 53EXTRA_DIST = \
fd2edfa6 54 AnagGUI.java anag-gui.in anag.manifest \
d9af4a2b 55 debian/control debian/changelog debian/copyright debian/rules \
56 debian/anag-gui-java.postinst debian/anag-gui-java.prerm \
57 debian/anag-gui-tk.postinst debian/anag-gui-tk.prerm
58
7d9d3468 59CLEANFILES = *.class *.jar
dc460403 60
6e403221 61##----- That's all, folks ---------------------------------------------------