Debian Codegraph @

Makefile

raw
1 # Makefile for festival-czech
2 #
3 # Copyright (C) 2004, 2005, 2006 Brailcom, o.p.s.
4 #
5 # Author: Milan Zamazal <[email protected]>
6 #
7 # COPYRIGHT NOTICE
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 # for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22
23
24 package := festival-czech
25 version := 0.3
26
27 festival_path = /usr/share/festival
28
29 INSTALL_PROGRAM = install
30
31 distfiles := *.scm *.out
32
33 .PHONY: all install install-strip uninstall clean distclean mostlyclean \
34 maintainer-clean TAGS info dvi dist check
35
36 all: czech-lexicon.out
37
38 %.out: %.scm
39 festival --batch '(lex.compile "$<" "$@")'
40
41 install: all
42 $(INSTALL_PROGRAM) -m 644 $(distfiles) $(festival_path)/
43
44 install-strip:
45 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
46
47 uninstall: all
48 for f in $(distfiles); do rm $(festival_path)/$$f; done
49
50 mostlyclean:
51
52 clean: mostlyclean
53
54 distclean: clean
55 rm -rf $(package)-$(version) *.tar *.tar.gz
56
57 maintainer-clean: distclean
58 rm -f *.out
59
60 TAGS:
61
62 info:
63
64 dvi:
65
66 dist: all distclean
67 mkdir $(package)-$(version)
68 cp $(distfiles) COPYING ChangeLog FAQ INSTALL* Makefile NEWS* README* $(package)-$(version)/
69 make -C $(package)-$(version) all
70 chmod 755 $(package)-$(version)
71 chmod 644 $(package)-$(version)/*
72 tar cf $(package)-$(version).tar $(package)-$(version)
73 gzip -9 $(package)-$(version).tar
74
75 check:
76