From b0f834b6a86c54e25d078d762003e9b7bc67e8ba Mon Sep 17 00:00:00 2001 From: "Andrew G. Morgan" Date: Wed, 29 May 2002 04:14:10 +0000 Subject: Relevant BUGIDs: 471377 Purpose of commit: new feature Commit summary: --------------- build pdf files when you type 'make pdf' in the doc/ directory. --- doc/Makefile | 25 +++++++++++++++++++++++++ doc/pdf/.cvsignore | 1 + doc/pdf/README | 3 +++ 3 files changed, 29 insertions(+) create mode 100644 doc/pdf/.cvsignore create mode 100644 doc/pdf/README (limited to 'doc') diff --git a/doc/Makefile b/doc/Makefile index e817f680..0d9adfa6 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -11,6 +11,7 @@ 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 +PDFFILES=pdf/pam.pdf ps/pam_appl.pdf ps/pam_modules.pdf MODULES=$(shell ls modules/*.sgml) @@ -20,6 +21,10 @@ dummy: @echo "Making the documentation..." @$(MAKE) all +# note, at this time we don't include pdf files by default, but you +# can type make pdf in this directory and see what happens in the pdf +# subdirectory. + all: htmls texts postscript htmls: $(HTMLS) @@ -65,6 +70,19 @@ else @echo XXX - neither sgml2ps nor sgml2latex binaries are installed endif +pdf: $(PDFFILES) + +$(PDFFILES) : $(PSFILES) +ifeq ($(HAVE_PS2PDF),yes) + @for i in $(FILES) ; do \ + if [ ! -f "pdf/$$i.pdf" ] || [ "ps/$$i.ps" -nt "ps/$$i.pdf" ]; then \ + ps2pdf ps/$$i.ps pdf/$$i.pdf ; \ + fi ; \ + done +else + @echo XXX - ps2pdf is not installed +endif + pam.sgml: pam_source.sgml MODULES-SGML CREDITS @sed -e '/^/r MODULES-SGML' pam_source.sgml | sed -e '/^/r CREDITS' > pam.sgml @@ -107,6 +125,12 @@ ifneq ($(PSER),) for file in ps/*.ps; do \ install -m 644 $$file $(FAKEROOT)$(DOCDIR)/ps ; \ done + ifeq ($(HAVE_PS2PDF),yes) + mkdir -p $(FAKEROOT)$(DOCDIR)/pdf + for file in pdf/*.pdf; do \ + install -m 644 $$file $(FAKEROOT)$(DOCDIR)/pdf ; \ + done + endif endif ifeq ($(HAVE_SGML2HTML),yes) mkdir -p $(FAKEROOT)$(DOCDIR)/html @@ -135,6 +159,7 @@ clean: rm -f man/*~ rm -f $(TEXTS) rm -f $(PSFILES) ps/missfont.log + rm -f pdf/*.pdf rm -f MODULES-SGML pam.sgml rm -f specs/draft-morgan-pam-current.txt $(MAKE) -C specs/formatter clean diff --git a/doc/pdf/.cvsignore b/doc/pdf/.cvsignore new file mode 100644 index 00000000..a1363379 --- /dev/null +++ b/doc/pdf/.cvsignore @@ -0,0 +1 @@ +*.pdf diff --git a/doc/pdf/README b/doc/pdf/README new file mode 100644 index 00000000..82efcd46 --- /dev/null +++ b/doc/pdf/README @@ -0,0 +1,3 @@ +$Id$ + +a directory for PDF versions of the documentation -- cgit v1.2.3