| 1 | ## -*-makefile-*- |
| 2 | ## |
| 3 | ## $Id$ |
| 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 | |
| 28 | AUTOMAKE_OPTIONS = foreign |
| 29 | javadir = $(datadir)/java |
| 30 | |
| 31 | JAVAC = @JAVAC@ |
| 32 | |
| 33 | SUFFIXES = .java .class |
| 34 | .java.class:; $(JAVAC) -d . $< |
| 35 | |
| 36 | bin_PROGRAMS = anag |
| 37 | bin_SCRIPTS = @TKPROGS@ |
| 38 | EXTRA_SCRIPTS = anag-gui |
| 39 | java_DATA = @JARFILES@ |
| 40 | |
| 41 | anag_SOURCES = \ |
| 42 | anag.c anag.h util.c \ |
| 43 | wildcard.c anagram.c mono.c trackword.c regexp.c pcre.c longest.c |
| 44 | |
| 45 | anag.jar: AnagGUI.class |
| 46 | jar cfm anag.jar $(srcdir)/anag.manifest Anag*.class Whinge*.class |
| 47 | |
| 48 | doszip: distdir |
| 49 | rm -f $(PACKAGE).zip |
| 50 | zip -qlr $(PACKAGE).zip $(distdir) |
| 51 | rm -rf $(distdir) |
| 52 | |
| 53 | EXTRA_DIST = \ |
| 54 | AnagGUI.java anag-gui.in anag.manifest \ |
| 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 | |
| 59 | CLEANFILES = *.class *.jar |
| 60 | |
| 61 | ##----- That's all, folks --------------------------------------------------- |