1# Makefile for festival-czech
2#
3# Copyright (C) 2004, 2005, 2006 Brailcom, o.p.s.
4#
5# Author: Milan Zamazal <pdm@brailcom.org>
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
24package := festival-czech
25version := 0.2.1
26
27festival_path = /usr/share/festival
28
29INSTALL_PROGRAM = install
30
31distfiles := *.scm *.out
32
33.PHONY: all install install-strip uninstall clean distclean mostlyclean \
34	maintainer-clean TAGS info dvi dist check
35
36all: czech-lexicon.out
37
38%.out: %.scm
39	echo '(lex.compile "$<" "$@")' | festival
40
41install: all
42
43install-strip:
44	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
45
46uninstall: all
47	for f in $(distfiles); do rm $(festival_path)/$$f; done
48
49mostlyclean:
50
51clean: mostlyclean
52
53distclean: clean
54	rm -rf $(package)-$(version) *.tar *.tar.gz
55
56maintainer-clean: distclean
57	rm -f *.out
58
59TAGS:
60
61info:
62
63dvi:
64
65dist: all distclean
66	mkdir $(package)-$(version)
67	cp $(distfiles) COPYING ChangeLog FAQ INSTALL* Makefile NEWS* README* $(package)-$(version)/
68	make -C $(package)-$(version) all
69	chmod 755 $(package)-$(version)
70	chmod 644 $(package)-$(version)/*
71	tar cf $(package)-$(version).tar $(package)-$(version)
72	gzip -9 $(package)-$(version).tar
73
74check:
75
76