head	1.9;
access;
symbols;
locks; strict;
comment	@# @;


1.9
date	97.01.04.21.55.52;	author morgan;	state Exp;
branches;
next	1.8;

1.8
date	96.11.30.20.56.34;	author morgan;	state Exp;
branches;
next	1.7;

1.7
date	96.11.10.21.17.48;	author morgan;	state Exp;
branches;
next	1.6;

1.6
date	96.11.10.19.38.30;	author morgan;	state Exp;
branches;
next	1.5;

1.5
date	96.07.07.23.51.22;	author morgan;	state Exp;
branches;
next	1.4;

1.4
date	96.03.17.03.26.44;	author morgan;	state Exp;
branches;
next	1.3;

1.3
date	96.03.17.00.22.20;	author morgan;	state Exp;
branches;
next	1.2;

1.2
date	96.03.10.02.59.55;	author morgan;	state Exp;
branches;
next	1.1;

1.1
date	96.03.09.08.14.15;	author morgan;	state Exp;
branches;
next	;


desc
@The make file for the documentation: sgml --> txt,html
@


1.9
log
@updated PSER and purging man/ directory too
@
text
@
### $Id: Makefile,v 1.8 1996/11/30 20:56:34 morgan Exp morgan $

TXTER=sgml2txt
HTMLER=sgml2html
# older distributions use, sgml2ps
PSER=sgml2latex -p

FILES=pam pam_appl pam_modules
FSRCS=pam.sgml pam_appl.sgml pam_modules.sgml

TEXTS=txts/pam.txt txts/pam_appl.txt txts/pam_modules.txt
HTMLS=html/pam.html html/pam_appl.html html/pam_modules.html
PSFILES=ps/pam.ps ps/pam_appl.ps ps/pam_modules.ps

MODULES=$(shell ls modules/*.sgml)

#######################################################

dummy:
	@@echo "Making the documentation..."
	@@make all

all: htmls texts postscript

htmls: $(HTMLS)

$(HTMLS) : $(FSRCS)
	@@for i in $(FILES) ; do \
	if [ ! -f "html/$$i.html" ] || [ "$$i.sgml" -nt "html/$$i.html" ]; \
	then \
		cd html ; $(HTMLER) ../$$i ; \
		if [ $$? -ne 0 ]; then exit 1 ; fi ; \
		cd .. ; \
	fi ; \
	done

texts: $(TEXTS)

$(TEXTS) : $(FSRCS)
	@@for i in $(FILES) ; do \
		if [ ! -f "txts/$$i.txt" ] \
				|| [ "$$i.sgml" -nt "txts/$$i.txt" ]; then \
			cd txts ; $(TXTER) ../$$i ; cd .. ; \
		fi ; \
	done

postscript: $(PSFILES)

$(PSFILES): $(FSRCS)
	@@for i in $(FILES) ; do \
	if [ ! -f "ps/$$i.ps" ] || [ "$$i.sgml" -nt "ps/$$i.ps" ]; then \
		cd ps ; $(PSER) ../$$i ; cd .. ; \
	fi ; \
	done

pam.sgml: pam_source.sgml MODULES-SGML
	@@sed -e '/^<!\-\- insert\-file MODULES\-SGML \-\->/r MODULES-SGML' pam_source.sgml > pam.sgml

MODULES-SGML: $(MODULES)
	@@echo 'Building module text from files in modules/*.sgml'
	@@rm -f MODULES-SGML
	@@echo '<!-- modules included:' > MODULES-SGML
	@@ls modules/*.sgml >> MODULES-SGML
	@@echo '  and that is all -->' >> MODULES-SGML
	@@cat modules/*.sgml >> MODULES-SGML

extraclean: clean

clean:
	rm -f *~ *.bak
	rm -f html/pam*.html
	rm -f man/*~
	rm -f $(TEXTS)
	rm -f $(PSFILES)
	rm -f MODULES-SGML pam.sgml

@


1.8
log
@a little more silent. does ps using sgml2ps now.
@
text
@d2 1
a2 1
### $Id: Makefile,v 1.7 1996/11/10 21:17:48 morgan Exp morgan $
d6 2
a7 1
PSER=sgml2ps
d73 1
@


1.7
log
@oops not cleaning the txts or html files
@
text
@d2 1
a2 1
### $Id: Makefile,v 1.6 1996/11/10 19:38:30 morgan Exp morgan $
d15 2
d23 1
a23 1
all: texts htmls postscript
d28 1
a28 1
	for i in $(FILES) ; do \
d31 4
a34 2
			cd html ; $(HTMLER) ../$$i ; cd .. ; \
		fi ; \
d40 1
a40 1
	for i in $(FILES) ; do \
d50 1
a50 1
	for i in $(FILES) ; do \
d56 11
d74 2
@


1.6
log
@revised for .53 added ps and txt generation in separate directories
@
text
@d2 1
a2 1
### $Id: Makefile,v 1.5 1996/07/07 23:51:22 morgan Exp morgan $
d11 1
a11 1
TEXTS=txt/pam.txt txt/pam_appl.txt txt/pam_modules.txt
d56 1
a56 1
	rm -f $(HTMLS)
@


1.5
log
@deleted paths for executables.. I've just changed distribution and the
old paths don't work now!
@
text
@d2 1
a2 1
### $Id: Makefile,v 1.4 1996/03/17 03:26:44 morgan Exp morgan $
d6 1
d10 2
d13 1
d18 4
d23 1
a23 1
	@@echo "*** This is not a top-level Makefile!"
d25 7
a31 1
all: texts htmls
d33 1
a33 1
texts: txts/*.txt
d35 1
a35 2
txts/*.txt : pam.sgml pam_appl.sgml pam_modules.sgml
	mkdir -p ./txts
d43 1
a43 1
htmls: $(HTMLS)
d45 1
a45 1
$(HTMLS) : pam.sgml pam_appl.sgml pam_modules.sgml
d47 3
a49 3
		if [ ! -f "html/$$i.html" ] || [ "$$i.sgml" -nt "html/$$i.html" ]; then \
			cd html ; $(HTMLER) ../$$i ; cd .. ; \
		fi ; \
d56 3
a58 2
	rm -f txts/*.txt
	rm -f html/pam*.html
@


1.4
log
@oops problems with txts directory
@
text
@d2 1
a2 1
### $Id: Makefile,v 1.3 1996/03/17 00:22:20 morgan Exp morgan $
d4 2
a5 2
TXTER=/usr/local/bin/sgml2txt
HTMLER=/usr/local/bin/sgml2html
a22 3
	if [ ! -x $(TXTER) ]; then \
		echo -e "\n %%% ---> no $(TXTER), skipping sgml->text\n" ; \
	fi ; \
a32 3
	if [ ! -x $(HTMLER) ]; then \
		echo -e "\n %%% ---> no $(HTMLER), skipping sgml->html\n" ; \
	fi ; \
@


1.3
log
@added *.bak to cleaning.. ispell ;)
@
text
@d2 1
a2 1
### $Id: Makefile,v 1.2 1996/03/10 02:59:55 morgan Exp morgan $
d22 1
@


1.2
log
@added extraclean rule.
@
text
@d2 1
a2 1
### $Id: Makefile,v 1.1 1996/03/09 08:14:15 morgan Exp morgan $
d47 1
a47 1
	rm -f *~
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
### $Id$
d43 2
@
