1# Makefile for gperf/doc
2
3# Copyright (C) 1998 Free Software Foundation, Inc.
4#
5# This file is part of GNU GPERF.
6#
7# GNU GPERF is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 1, or (at your option)
10# any later version.
11#
12# GNU GPERF is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with GNU GPERF; see the file COPYING. If not, write to the Free
19# Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111, USA.
20
21#### Start of system configuration section. ####
22
23# Directories used by "make":
24srcdir = @srcdir@
25
26# Directories used by "make install":
27prefix = @prefix@
28local_prefix = /usr/local
29exec_prefix = @exec_prefix@
30infodir = @infodir@
31mandir = @mandir@
32man1dir = $(mandir)/man1
33dvidir = $(mandir)/dvi
34htmldir = $(mandir)/html
35
36# Programs used by "make":
37RM = rm -f
38@SET_MAKE@
39
40# Programs used by "make" if you have changed the documentation files:
41TEX = tex
42TEXI2DVI = texi2dvi
43DVIPS = dvips -Pljfour
44MAKEINFO = LANGUAGE= makeinfo
45TEXI2HTML = texi2html
46
47# Programs used by "make install":
48INSTALL = @INSTALL@
49INSTALL_PROGRAM = @INSTALL_PROGRAM@
50INSTALL_DATA = @INSTALL_DATA@
51
52#### End of system configuration section. ####
53
54SHELL = /bin/sh
55
56VPATH = $(srcdir)
57
58all : info dvi ps html
59
60
61info : $(srcdir)/gperf.info
62
63$(srcdir)/gperf.info : $(srcdir)/gperf.texi
64 cd $(srcdir) && $(MAKEINFO) --no-split gperf.texi
65
66
67dvi : $(srcdir)/gperf.dvi
68
69$(srcdir)/gperf.dvi : $(srcdir)/gperf.texi
70 cd $(srcdir) && $(RM) gperf.aux gperf.toc gperf.cp gperf.fn gperf.ky gperf.pg gperf.tp gperf.vr gperf.log
71 cd $(srcdir) && $(TEXI2DVI) gperf.texi
72 cd $(srcdir) && $(RM) gperf.aux gperf.toc gperf.cp gperf.fn gperf.ky gperf.pg gperf.tp gperf.vr gperf.log
73
74
75ps : $(srcdir)/gperf.ps
76
77$(srcdir)/gperf.ps : $(srcdir)/gperf.dvi
78 $(DVIPS) -o $@ $<
79
80
81html : gperf.html gperf_toc.html
82
83gperf.html : $(srcdir)/gperf.texi
84 cd $(srcdir) && $(TEXI2HTML) -expandinfo -number -monolithic gperf.texi
85
86gperf_toc.html : $(srcdir)/gperf.texi
87 cd $(srcdir) && $(RM) gperf_*.html
88 cd $(srcdir) && $(TEXI2HTML) -expandinfo -number -split_chapter gperf.texi
89
90
91install : all force
92 if [ ! -d $(infodir) ] ; then mkdir $(infodir) ; fi
93 $(INSTALL_DATA) $(srcdir)/gperf.info $(infodir)/gperf.info
94 if [ ! -d $(mandir) ] ; then mkdir $(mandir) ; fi
95 if [ ! -d $(man1dir) ] ; then mkdir $(man1dir) ; fi
96 $(INSTALL_DATA) $(srcdir)/gperf.1 $(man1dir)/gperf.1
97 if [ ! -d $(dvidir) ] ; then mkdir $(dvidir) ; fi
98 $(INSTALL_DATA) $(srcdir)/gperf.dvi $(dvidir)/gperf.dvi
99 if [ ! -d $(htmldir) ] ; then mkdir $(htmldir) ; fi
100 $(INSTALL_DATA) $(srcdir)/gperf.html $(htmldir)/gperf.html
101
102installdirs : force
103 if [ ! -d $(infodir) ] ; then mkdir $(infodir) ; fi
104 if [ ! -d $(mandir) ] ; then mkdir $(mandir) ; fi
105 if [ ! -d $(man1dir) ] ; then mkdir $(man1dir) ; fi
106 if [ ! -d $(dvidir) ] ; then mkdir $(dvidir) ; fi
107 if [ ! -d $(htmldir) ] ; then mkdir $(htmldir) ; fi
108
109uninstall : force
110 $(RM) $(infodir)/gperf.info
111 $(RM) $(man1dir)/gperf.1
112 $(RM) $(dvidir)/gperf.dvi
113 $(RM) $(htmldir)/gperf.html
114
115check : all
116
117mostlyclean : clean
118
119clean : force
120 $(RM) *~ *.aux *.toc *.cp *.fn *.ky *.pg *.tp *.vr *.my *.log core
121
122distclean : clean
123 $(RM) config.status config.log config.cache Makefile
124
125maintainer-clean : distclean
126 $(RM) *.info *.dvi *.ps *.html
127
128force :
129
2
3# Copyright (C) 1998 Free Software Foundation, Inc.
4#
5# This file is part of GNU GPERF.
6#
7# GNU GPERF is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 1, or (at your option)
10# any later version.
11#
12# GNU GPERF is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with GNU GPERF; see the file COPYING. If not, write to the Free
19# Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111, USA.
20
21#### Start of system configuration section. ####
22
23# Directories used by "make":
24srcdir = @srcdir@
25
26# Directories used by "make install":
27prefix = @prefix@
28local_prefix = /usr/local
29exec_prefix = @exec_prefix@
30infodir = @infodir@
31mandir = @mandir@
32man1dir = $(mandir)/man1
33dvidir = $(mandir)/dvi
34htmldir = $(mandir)/html
35
36# Programs used by "make":
37RM = rm -f
38@SET_MAKE@
39
40# Programs used by "make" if you have changed the documentation files:
41TEX = tex
42TEXI2DVI = texi2dvi
43DVIPS = dvips -Pljfour
44MAKEINFO = LANGUAGE= makeinfo
45TEXI2HTML = texi2html
46
47# Programs used by "make install":
48INSTALL = @INSTALL@
49INSTALL_PROGRAM = @INSTALL_PROGRAM@
50INSTALL_DATA = @INSTALL_DATA@
51
52#### End of system configuration section. ####
53
54SHELL = /bin/sh
55
56VPATH = $(srcdir)
57
58all : info dvi ps html
59
60
61info : $(srcdir)/gperf.info
62
63$(srcdir)/gperf.info : $(srcdir)/gperf.texi
64 cd $(srcdir) && $(MAKEINFO) --no-split gperf.texi
65
66
67dvi : $(srcdir)/gperf.dvi
68
69$(srcdir)/gperf.dvi : $(srcdir)/gperf.texi
70 cd $(srcdir) && $(RM) gperf.aux gperf.toc gperf.cp gperf.fn gperf.ky gperf.pg gperf.tp gperf.vr gperf.log
71 cd $(srcdir) && $(TEXI2DVI) gperf.texi
72 cd $(srcdir) && $(RM) gperf.aux gperf.toc gperf.cp gperf.fn gperf.ky gperf.pg gperf.tp gperf.vr gperf.log
73
74
75ps : $(srcdir)/gperf.ps
76
77$(srcdir)/gperf.ps : $(srcdir)/gperf.dvi
78 $(DVIPS) -o $@ $<
79
80
81html : gperf.html gperf_toc.html
82
83gperf.html : $(srcdir)/gperf.texi
84 cd $(srcdir) && $(TEXI2HTML) -expandinfo -number -monolithic gperf.texi
85
86gperf_toc.html : $(srcdir)/gperf.texi
87 cd $(srcdir) && $(RM) gperf_*.html
88 cd $(srcdir) && $(TEXI2HTML) -expandinfo -number -split_chapter gperf.texi
89
90
91install : all force
92 if [ ! -d $(infodir) ] ; then mkdir $(infodir) ; fi
93 $(INSTALL_DATA) $(srcdir)/gperf.info $(infodir)/gperf.info
94 if [ ! -d $(mandir) ] ; then mkdir $(mandir) ; fi
95 if [ ! -d $(man1dir) ] ; then mkdir $(man1dir) ; fi
96 $(INSTALL_DATA) $(srcdir)/gperf.1 $(man1dir)/gperf.1
97 if [ ! -d $(dvidir) ] ; then mkdir $(dvidir) ; fi
98 $(INSTALL_DATA) $(srcdir)/gperf.dvi $(dvidir)/gperf.dvi
99 if [ ! -d $(htmldir) ] ; then mkdir $(htmldir) ; fi
100 $(INSTALL_DATA) $(srcdir)/gperf.html $(htmldir)/gperf.html
101
102installdirs : force
103 if [ ! -d $(infodir) ] ; then mkdir $(infodir) ; fi
104 if [ ! -d $(mandir) ] ; then mkdir $(mandir) ; fi
105 if [ ! -d $(man1dir) ] ; then mkdir $(man1dir) ; fi
106 if [ ! -d $(dvidir) ] ; then mkdir $(dvidir) ; fi
107 if [ ! -d $(htmldir) ] ; then mkdir $(htmldir) ; fi
108
109uninstall : force
110 $(RM) $(infodir)/gperf.info
111 $(RM) $(man1dir)/gperf.1
112 $(RM) $(dvidir)/gperf.dvi
113 $(RM) $(htmldir)/gperf.html
114
115check : all
116
117mostlyclean : clean
118
119clean : force
120 $(RM) *~ *.aux *.toc *.cp *.fn *.ky *.pg *.tp *.vr *.my *.log core
121
122distclean : clean
123 $(RM) config.status config.log config.cache Makefile
124
125maintainer-clean : distclean
126 $(RM) *.info *.dvi *.ps *.html
127
128force :
129