Debian Codegraph @

Makefile

raw
1 # Makefile for festival-freebsoft-utils
2
3 # Copyright (C) 2004, 2006, 2007, 2008 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 PROJECT := festival-freebsoft-utils
24 VERSION := 0.10
25
26 DISTDIR := festival-freebsoft-utils-$(VERSION)
27 TARBALL := $(DISTDIR).tar
28 DOCDIR := doc
29
30 .PHONY: all install install-strip uninstall clean distclean mostlyclean \
31 maintainer-clean TAGS info dvi dist check
32
33 all: info
34
35 install:
36
37 install-strip:
38 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
39
40 uninstall:
41
42 mostlyclean:
43
44 clean: mostlyclean
45 rm -rf $(DISTDIR) $(TARBALL)*
46 rm -f doc/*.info doc/*.ps doc/*.pdf doc/*.html doc/*.dvi
47
48 distclean: clean
49
50 maintainer-clean: distclean
51
52 TAGS:
53
54 info: $(DOCDIR)/$(PROJECT).info
55 %.info: %.texi
56 cd $(DOCDIR) && makeinfo $(PROJECT).texi
57
58 pdf: $(DOCDIR)/$(PROJECT).pdf
59 %.pdf: %.texi
60 cd $(DOCDIR) && texi2pdf $(PROJECT).texi
61
62 dvi: $(DOCDIR)/$(PROJECT).dvi
63 %.dvi: %.texi
64 cd $(DOCDIR) && texi2dvi $(PROJECT).texi
65
66 ps: $(DOCDIR)/$(PROJECT).ps
67 %.ps: %.texi dvi
68 cd $(DOCDIR) && dvips $(PROJECT).dvi
69
70 html: $(DOCDIR)/$(PROJECT).html
71 %.html: %.texi
72 cd $(DOCDIR) && \
73 makeinfo --html --no-split $(PROJECT).texi
74
75 doc-all: info pdf ps dvi html
76
77 dist: clean info
78 mkdir $(DISTDIR)
79 chmod 755 $(DISTDIR)
80 install -m 644 [A-Z]* *.scm $(DISTDIR)
81 mkdir -m 755 $(DISTDIR)/doc
82 install -m 644 doc/*.texi doc/*.info* $(DISTDIR)/doc/
83 tar cvf $(TARBALL) $(DISTDIR)
84 gzip -9 $(TARBALL)
85
86 check:
87