1########################################################################### 2# LPRng - An Extended Print Spooler System 3# 4# Copyright 1988-1997 Patrick Powell, San Diego, California 5# papowell@sdsu.edu 6# See LICENSE for conditions of use. 7# 8########################################################################### 9# MODULE: FAQ/Makefile 10# PURPOSE: generate utilities 11# Makefile.in,v 1.7 1998/03/30 02:37:07 papowell Exp 12########################################################################## 13 14# FAQ Makefile 15# 16 17FMT=LPRng-Reference 18DSSSL=docbook-1.54 19DSSSL=modular 20 21SRC=@srcdir@ 22 23CATALOGS= \ 24 -c /usr/local/share/sgml/catalog \ 25 -c /usr/local/share/sgml/docbook/dsssl/${DSSSL}/catalog 26 27DOC=LPRng-Reference 28 29all: license.enc license.txt y2k.txt $(DOC).html $(DOC).pdf LPRng-Reference-Multipart/index.htm purge 30 31LICENSE= $(SRC)/../LICENSE 32 33license.txt: $(LICENSE) 34 cp $(LICENSE) $@ 35 36license.enc: $(LICENSE) Makefile 37 echo "<![ CDATA [" >$@ 38 cat $(LICENSE) >>$@ 39 echo "]]>" >>$@ 40 41y2k.txt: $(SRC)/../Y2KCompliance 42 cp $(SRC)/../Y2KCompliance $@ 43 44$(DOC).html: $(DOC).sgml $(DOC).dsl Makefile license.enc 45 jade -i output.html -V nochunks -t sgml \ 46 $(CATALOGS) -d $(FMT).dsl $(DOC).sgml >$(DOC).html 47 -tidy -i -m -f /dev/null ${TIDYFLAGS} $@ 48 ./updateheader $@ 49 50check: license.enc 51 #nsgmls -s -f handbook.errs handbook.sgml 52 nsgmls -s $(CATALOGS) $(DOC).sgml 53 54$(DOC).tex: $(DOC).sgml $(FMT).dsl Makefile 55 jade -Vtex-backend -ioutput.print -t tex -o $(DOC).tex \ 56 $(CATALOGS) -d $(FMT).dsl $(DOC).sgml 57 58$(DOC).dvi: $(DOC).tex $(FMT).dsl Makefile 59 @echo "==> TeX pass 1/3" 60 -tex "&jadetex" $(DOC).tex 2>&1 >/dev/null 61 @echo "==> TeX pass 2/3" 62 -tex "&jadetex" $(DOC).tex 2>&1 >/dev/null 63 @echo "==> TeX pass 3/3" 64 tex "&jadetex" $(DOC).tex 65 66$(DOC).ps: $(DOC).dvi 67 dvips -q -t letter -o $(DOC).ps $(DOC).dvi 68$(DOC).pdf: $(DOC).ps 69 ps2pdf -dPDFSETTINGS=/default \ 70 -dEmbedAllFonts=true \ 71 -dAntiAliasColorImages=true \ 72 -dAntiAliasGrayImages=true \ 73 -dAntiAliasMonoImages=true \ 74 -dCompatibilityLevel=1.2 \ 75 $(DOC).ps $(DOC).pdf 76 77purge: 78 rm -f *.aux *.log *.toc *.fot *.ps *.dvi *.tex 79 80 81.PHONY: all clean install ci install.zman update purge 82 83update: 84 ./updatesgmlmirrors ../MIRRORS *.sgml 85 ./updateversion *.sgml 86 cp ../CHANGES . 87 rm -f genindex.sgml 88 perl collateindex.pl -t "Index" -N -o genindex.sgml 89 jade -V html-index -V nochunks -t sgml \ 90 $(CATALOGS) -d \ 91 /usr/local/share/sgml/docbook/dsssl/modular/html/docbook.dsl \ 92 $(DOC).sgml >/dev/null 93 perl collateindex.pl -t "Index" -o genindex.sgml HTML.index 94 ${MAKE} all 95 96# 97# 98install: 99 100clean: 101 -rm -f *.errs HTML.* *.tex *.log *.aux *.toc *.dvi *.ps *.tex 102 103mostlyclean distclean:: clean 104 105realclean: clean purge 106 -rm -f CHANGES HTML.* genindex.sgml 107 -rm -f *.ps *.dvi *.htm *.html *.pdf 108 -rm -rf LPRng-Reference-Multipart 109 110 111#CI= 112#CO=-kv 113CO=-l 114cifast ci: clean 115 checkin() { \ 116 (set +e; rcs -l $$1; exit 0); \ 117 ci $(CI) -l -u -f -mUpdate -t-Initial $$1; \ 118 }; \ 119 for i in *.sgml Makefile.in Makefile; do \ 120 checkin $$i; \ 121 done; 122 123correct: 124 correct -d dict *.sgml 125 126LPRng-Reference-Multipart/index.htm: $(DOC).sgml $(DOC).dsl Makefile license.enc 127 rm -rf LPRng-Reference-Multipart; 128 if [ ! -d LPRng-Reference-Multipart ] ; then mkdir LPRng-Reference-Multipart; fi 129 cp LPRng.jpg LPRngT-L.jpg LPRng-Reference-Multipart 130 jade -i output.html -V html-manifest -t sgml \ 131 $(CATALOGS) -d $(FMT).dsl $(DOC).sgml 132 -tidy -i -m -f /dev/null ${TIDYFLAGS} `xargs < HTML.manifest` 133 ./updateheader index.htm 134 mv *.htm LPRng-Reference-Multipart 135 136