1# Makefile for gperf/doc 2
|
3# Copyright (C) 1998 Free Software Foundation, Inc.
|
3# Copyright (C) 1998, 2000 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@
|
30datadir = @datadir@ |
31infodir = @infodir@ 32mandir = @mandir@ 33man1dir = $(mandir)/man1
|
33dvidir = $(mandir)/dvi
34htmldir = $(mandir)/html
|
34docdir = $(prefix)/doc/@PACKAGE@ 35dvidir = $(docdir) 36psdir = $(docdir) 37htmldir = $(docdir) |
38 39# Programs used by "make": 40RM = rm -f 41@SET_MAKE@ 42 43# Programs used by "make" if you have changed the documentation files: 44TEX = tex 45TEXI2DVI = texi2dvi
|
43DVIPS = dvips -Pljfour
44MAKEINFO = LANGUAGE= makeinfo
|
46DVIPS = dvips -D600 47MAKEINFO = LANG= LANGUAGE= makeinfo |
48TEXI2HTML = texi2html 49 50# Programs used by "make install": 51INSTALL = @INSTALL@ 52INSTALL_PROGRAM = @INSTALL_PROGRAM@ 53INSTALL_DATA = @INSTALL_DATA@
|
54MKINSTALLDIRS = $(SHELL) $(srcdir)/../mkinstalldirs |
55 56#### End of system configuration section. #### 57 58SHELL = /bin/sh 59 60VPATH = $(srcdir) 61 62all : info dvi ps html 63 64 65info : $(srcdir)/gperf.info 66
|
63$(srcdir)/gperf.info : $(srcdir)/gperf.texi
|
67$(srcdir)/gperf.info : $(srcdir)/gperf.texi $(srcdir)/gpl.texinfo |
68 cd $(srcdir) && $(MAKEINFO) --no-split gperf.texi 69 70 71dvi : $(srcdir)/gperf.dvi 72
|
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
|
73$(srcdir)/gperf.dvi : $(srcdir)/gperf.texi $(srcdir)/gpl.texinfo 74 cd $(srcdir) && $(RM) gperf.aux gperf.toc gperf.cp gperf.fn gperf.ky gperf.pg gperf.tp gperf.vr gperf.log gperf.cps |
75 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
|
76 cd $(srcdir) && $(RM) gperf.aux gperf.toc gperf.cp gperf.fn gperf.ky gperf.pg gperf.tp gperf.vr gperf.log gperf.cps |
77 78 79ps : $(srcdir)/gperf.ps 80 81$(srcdir)/gperf.ps : $(srcdir)/gperf.dvi 82 $(DVIPS) -o $@ $< 83 84 85html : gperf.html gperf_toc.html 86
|
83gperf.html : $(srcdir)/gperf.texi
|
87gperf.html : $(srcdir)/gperf.texi $(srcdir)/gpl.texinfo |
88 cd $(srcdir) && $(TEXI2HTML) -expandinfo -number -monolithic gperf.texi 89
|
86gperf_toc.html : $(srcdir)/gperf.texi
|
90gperf_toc.html : $(srcdir)/gperf.texi $(srcdir)/gpl.texinfo |
91 cd $(srcdir) && $(RM) gperf_*.html 92 cd $(srcdir) && $(TEXI2HTML) -expandinfo -number -split_chapter gperf.texi 93 94 95install : 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
|
96 $(MKINSTALLDIRS) $(DESTDIR)$(infodir) 97 $(INSTALL_DATA) $(srcdir)/gperf.info $(DESTDIR)$(infodir)/gperf.info 98 $(MKINSTALLDIRS) $(DESTDIR)$(man1dir) 99 $(INSTALL_DATA) $(srcdir)/gperf.1 $(DESTDIR)$(man1dir)/gperf.1 100# $(MKINSTALLDIRS) $(DESTDIR)$(dvidir) 101# $(INSTALL_DATA) $(srcdir)/gperf.dvi $(DESTDIR)$(dvidir)/gperf.dvi 102# $(MKINSTALLDIRS) $(DESTDIR)$(psdir) 103# $(INSTALL_DATA) $(srcdir)/gperf.ps $(DESTDIR)$(dvidir)/gperf.ps 104 $(MKINSTALLDIRS) $(DESTDIR)$(htmldir) 105 $(INSTALL_DATA) $(srcdir)/gperf.html $(DESTDIR)$(htmldir)/gperf.html |
106 107installdirs : 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 $(MKINSTALLDIRS) $(DESTDIR)$(infodir) 109 $(MKINSTALLDIRS) $(DESTDIR)$(man1dir) 110# $(MKINSTALLDIRS) $(DESTDIR)$(dvidir) 111# $(MKINSTALLDIRS) $(DESTDIR)$(psdir) 112 $(MKINSTALLDIRS) $(DESTDIR)$(htmldir) |
113 114uninstall : force
|
110 $(RM) $(infodir)/gperf.info
111 $(RM) $(man1dir)/gperf.1
112 $(RM) $(dvidir)/gperf.dvi
113 $(RM) $(htmldir)/gperf.html
|
115 $(RM) $(DESTDIR)$(infodir)/gperf.info 116 $(RM) $(DESTDIR)$(man1dir)/gperf.1 117# $(RM) $(DESTDIR)$(dvidir)/gperf.dvi 118# $(RM) $(DESTDIR)$(psdir)/gperf.ps 119 $(RM) $(DESTDIR)$(htmldir)/gperf.html |
120 121check : all 122 123mostlyclean : clean 124 125clean : force
|
120 $(RM) *~ *.aux *.toc *.cp *.fn *.ky *.pg *.tp *.vr *.my *.log core
|
126 $(RM) *~ *.aux *.toc *.cp *.fn *.ky *.pg *.tp *.vr *.my *.log *.cps core |
127 128distclean : clean 129 $(RM) config.status config.log config.cache Makefile 130 131maintainer-clean : distclean 132 $(RM) *.info *.dvi *.ps *.html 133 134force : 135
|