1# Makefile for gperf/doc 2 3# Copyright (C) 1998, 2000, 2002-2003, 2007 Free Software Foundation, Inc. 4# Written by Douglas C. Schmidt <schmidt@ics.uci.edu> 5# and Bruno Haible <bruno@clisp.org>. 6# 7# This file is part of GNU GPERF. 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 3 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, 15# but WITHOUT ANY WARRANTY; without even the implied warranty of 16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17# GNU General Public License for more details. 18# 19# You should have received a copy of the GNU General Public License 20# along with this program. If not, see <http://www.gnu.org/licenses/>. 21 22#### Start of system configuration section. #### 23 24# Directories used by "make": 25srcdir = @srcdir@ 26 27# Directories used by "make install": 28prefix = @prefix@ 29local_prefix = /usr/local 30exec_prefix = @exec_prefix@ 31datarootdir = @datarootdir@ 32datadir = @datadir@ 33infodir = @infodir@ 34mandir = @mandir@ 35man1dir = $(mandir)/man1 36docdir = @docdir@ 37dvidir = @dvidir@ 38psdir = @psdir@ 39pdfdir = @pdfdir@ 40htmldir = @htmldir@ 41 42# Programs used by "make": 43RM = rm -f 44@SET_MAKE@ 45 46# Programs used by "make" if you have changed the documentation files: 47TEX = tex 48TEXI2DVI = texi2dvi 49DVIPS = dvips -D600 50TEXI2PDF = texi2pdf 51MAKEINFO = LANG= LC_MESSAGES= LC_ALL= LANGUAGE= makeinfo 52TEXI2HTML = perl $(srcdir)/texi2html 53 54# Programs used by "make install": 55INSTALL = @INSTALL@ 56INSTALL_PROGRAM = @INSTALL_PROGRAM@ 57INSTALL_DATA = @INSTALL_DATA@ 58MKINSTALLDIRS = $(SHELL) $(srcdir)/../mkinstalldirs 59 60#### End of system configuration section. #### 61 62SHELL = /bin/sh 63 64VPATH = $(srcdir) 65 66all : info ps pdf html 67 68 69info : $(srcdir)/gperf.info 70 71$(srcdir)/gperf.info : $(srcdir)/gperf.texi $(srcdir)/gpl-3.0.texi 72 cd $(srcdir) && $(MAKEINFO) --no-split gperf.texi 73 74 75dvi : $(srcdir)/gperf.dvi 76 77$(srcdir)/gperf.dvi : $(srcdir)/gperf.texi $(srcdir)/gpl-3.0.texi 78 cd $(srcdir) && $(RM) gperf.aux gperf.toc gperf.cp gperf.fn gperf.ky gperf.pg gperf.tp gperf.vr gperf.log gperf.cps 79 cd $(srcdir) && $(TEXI2DVI) gperf.texi 80 cd $(srcdir) && $(RM) gperf.aux gperf.toc gperf.cp gperf.fn gperf.ky gperf.pg gperf.tp gperf.vr gperf.log gperf.cps 81 82 83ps : $(srcdir)/gperf.ps 84 85$(srcdir)/gperf.ps : $(srcdir)/gperf.dvi 86 $(DVIPS) -o $@ $(srcdir)/gperf.dvi 87 88 89pdf : $(srcdir)/gperf.pdf 90 91$(srcdir)/gperf.pdf : $(srcdir)/gperf.texi $(srcdir)/gpl-3.0.texi 92 cd $(srcdir) && $(RM) gperf.aux gperf.toc gperf.cp gperf.fn gperf.ky gperf.pg gperf.tp gperf.vr gperf.log gperf.cps 93 cd $(srcdir) && $(TEXI2PDF) gperf.texi 94 cd $(srcdir) && $(RM) gperf.aux gperf.toc gperf.cp gperf.fn gperf.ky gperf.pg gperf.tp gperf.vr gperf.log gperf.cps 95 96 97html : gperf.html gperf_toc.html 98 99gperf.html : $(srcdir)/gperf.texi $(srcdir)/gpl-3.0.texi 100 cd $(srcdir) && $(TEXI2HTML) -number -monolithic gperf.texi 101 102gperf_toc.html : $(srcdir)/gperf.texi $(srcdir)/gpl-3.0.texi 103 cd $(srcdir) && $(RM) gperf_*.html 104 cd $(srcdir) && $(TEXI2HTML) -number -split_chapter gperf.texi 105 106 107install : all force 108 $(MKINSTALLDIRS) $(DESTDIR)$(infodir) 109 $(INSTALL_DATA) $(srcdir)/gperf.info $(DESTDIR)$(infodir)/gperf.info 110 $(MKINSTALLDIRS) $(DESTDIR)$(man1dir) 111 $(INSTALL_DATA) $(srcdir)/gperf.1 $(DESTDIR)$(man1dir)/gperf.1 112# $(MKINSTALLDIRS) $(DESTDIR)$(dvidir) 113# $(INSTALL_DATA) $(srcdir)/gperf.dvi $(DESTDIR)$(dvidir)/gperf.dvi 114# $(MKINSTALLDIRS) $(DESTDIR)$(psdir) 115# $(INSTALL_DATA) $(srcdir)/gperf.ps $(DESTDIR)$(psdir)/gperf.ps 116# $(MKINSTALLDIRS) $(DESTDIR)$(pdfdir) 117# $(INSTALL_DATA) $(srcdir)/gperf.pdf $(DESTDIR)$(pdfdir)/gperf.pdf 118 $(MKINSTALLDIRS) $(DESTDIR)$(htmldir) 119 $(INSTALL_DATA) $(srcdir)/gperf.html $(DESTDIR)$(htmldir)/gperf.html 120 121installdirs : force 122 $(MKINSTALLDIRS) $(DESTDIR)$(infodir) 123 $(MKINSTALLDIRS) $(DESTDIR)$(man1dir) 124# $(MKINSTALLDIRS) $(DESTDIR)$(dvidir) 125# $(MKINSTALLDIRS) $(DESTDIR)$(psdir) 126# $(MKINSTALLDIRS) $(DESTDIR)$(pdfdir) 127 $(MKINSTALLDIRS) $(DESTDIR)$(htmldir) 128 129uninstall : force 130 $(RM) $(DESTDIR)$(infodir)/gperf.info 131 $(RM) $(DESTDIR)$(man1dir)/gperf.1 132# $(RM) $(DESTDIR)$(dvidir)/gperf.dvi 133# $(RM) $(DESTDIR)$(psdir)/gperf.ps 134# $(RM) $(DESTDIR)$(pdfdir)/gperf.pdf 135 $(RM) $(DESTDIR)$(htmldir)/gperf.html 136 137check : all 138 139mostlyclean : clean 140 141clean : force 142 $(RM) *~ *.aux *.toc *.cp *.fn *.ky *.pg *.tp *.vr *.my *.log *.cps core 143 144distclean : clean 145 $(RM) config.status config.log config.cache Makefile 146 147maintainer-clean : distclean 148 $(RM) *.info *.dvi *.ps *.pdf *.html 149 150force : 151 152