2 ### $Id: Makefile,v 1.9 1997/01/04 21:55:52 morgan Exp $
3 ### $FreeBSD: src/contrib/libpam/doc/Makefile,v 1.1.1.1.6.2 2001/06/11 15:28:10 markm Exp $
7 # older distributions use, sgml2ps
10 FILES=pam pam_appl pam_modules
11 FSRCS=pam.sgml pam_appl.sgml pam_modules.sgml
13 TEXTS=txts/pam.txt txts/pam_appl.txt txts/pam_modules.txt
14 HTMLS=html/pam.html html/pam_appl.html html/pam_modules.html
15 PSFILES=ps/pam.ps ps/pam_appl.ps ps/pam_modules.ps
17 MODULES=$(shell ls modules/*.sgml)
19 #######################################################
22 @echo "Making the documentation..."
25 all: htmls texts postscript
30 @for i in $(FILES) ; do \
31 if [ ! -f "html/$$i.html" ] || [ "$$i.sgml" -nt "html/$$i.html" ]; \
33 cd html ; $(HTMLER) ../$$i ; \
34 if [ $$? -ne 0 ]; then exit 1 ; fi ; \
42 @for i in $(FILES) ; do \
43 if [ ! -f "txts/$$i.txt" ] \
44 || [ "$$i.sgml" -nt "txts/$$i.txt" ]; then \
45 cd txts ; $(TXTER) ../$$i ; cd .. ; \
49 postscript: $(PSFILES)
52 @for i in $(FILES) ; do \
53 if [ ! -f "ps/$$i.ps" ] || [ "$$i.sgml" -nt "ps/$$i.ps" ]; then \
54 cd ps ; $(PSER) ../$$i ; cd .. ; \
58 pam.sgml: pam_source.sgml MODULES-SGML
59 @sed -e '/^<!\-\- insert\-file MODULES\-SGML \-\->/r MODULES-SGML' pam_source.sgml > pam.sgml
61 MODULES-SGML: $(MODULES)
62 @echo 'Building module text from files in modules/*.sgml'
64 @echo '<!-- modules included:' > MODULES-SGML
65 @ls modules/*.sgml >> MODULES-SGML
66 @echo ' and that is all -->' >> MODULES-SGML
67 @cat modules/*.sgml >> MODULES-SGML
77 rm -f MODULES-SGML pam.sgml