From: Michael Smith Date: Tue, 26 Apr 2005 02:22:35 +0000 (+0000) Subject: created separate makefiles for all subdirs; also, build PDF X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1027392558f77553dea92f14b785689916fb7e9;p=docbook-dsssl created separate makefiles for all subdirs; also, build PDF --- diff --git a/slides/demo/Makefile b/slides/demo/Makefile index 1c68cc236..98fe8c7cf 100644 --- a/slides/demo/Makefile +++ b/slides/demo/Makefile @@ -1,55 +1,66 @@ -XSLTPROC=saxon -SLIDES=../source/slides.xml -XSLT=$(XSLTPROC) $(SLIDES) -HTML=html - -all: default plain tables vslides w3c frames browser graphics - -frames: frames1 frames2 frames3 frames4 frames5 frames6 frames7 - -.PHONY: browser graphics \ - default plain tables vslides w3c \ - frames1 frames2 frames3 frames4 frames5 frames6 frames7 - -browser: - mkdir -p browser - cd browser && cp ../../browser/*.css ../../browser/*.js . - -graphics: - cd ../graphics && tar cf - `find . -type f -name "*.gif" -o -name "*.png"` | (cd ../demo/graphics; tar xf -) - -default: - cd default && rm -f *.html && $(XSLT) ../../xsl/$(HTML)/default.xsl - -plain: - cd plain && rm -f *.html && $(XSLT) ../../xsl/$(HTML)/plain.xsl - -tables: - cd tables && rm -f *.html && $(XSLT) ../../xsl/$(HTML)/tables.xsl - -vslides: - cd vslides && rm -f *.html && $(XSLT) ../../xsl/$(HTML)/vslides.xsl - -w3c: - cd w3c && rm -f *.html && $(XSLT) ../../xsl/$(HTML)/w3c.xsl - -frames1: - cd frames1 && rm -f *.html && $(XSLT) ../../xsl/$(HTML)/frames.xsl - overlay=0 multiframe=0 dynamic.toc=0 active.toc=0 - -frames2: - cd frames2 && rm -f *.html && $(XSLT) ../../xsl/$(HTML)/frames.xsl - overlay=1 multiframe=0 dynamic.toc=0 active.toc=0 - -frames3: - cd frames3 && rm -f *.html && $(XSLT) ../../xsl/$(HTML)/frames.xsl - overlay=0 multiframe=1 dynamic.toc=0 active.toc=0 - -frames4: - cd frames4 && rm -f *.html && $(XSLT) ../../xsl/$(HTML)/frames.xsl - overlay=0 multiframe=0 dynamic.toc=1 active.toc=0 - -frames5: - cd frames5 && rm -f *.html && $(XSLT) ../../xsl/$(HTML)/frames.xsl - overlay=0 multiframe=0 dynamic.toc=0 active.toc=1 - -frames6: - cd frames6 && rm -f *.html && $(XSLT) ../../xsl/$(HTML)/frames.xsl - overlay=1 multiframe=0 dynamic.toc=1 active.toc=1 - -frames7: - cd frames7 && rm -f *.html && $(XSLT) ../../xsl/$(HTML)/frames.xsl - overlay=0 multiframe=1 dynamic.toc=1 active.toc=1 +include ../../cvstools/Makefile.incl + +VPATH=./source +FORMATTER=xep +FOSTYLE=../xsl/fo/plain.xsl +FO_OPTS= ulink.show=0 ulink.footnotes=1 draft.mode="no" +DOCSTYLE=http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl + +DIRS = browser graphics \ + default plain tables vslides w3c \ + frames1 frames2 frames3 frames4 frames5 frames6 frames7 + +all: index.html slides.pdf + for i in $(DIRS) __bogus__; do \ + if [ $$i != __bogus__ ] ; then \ + echo "$(MAKE) -C $$i"; $(MAKE) -C $$i; \ + fi \ + done + +index.html: index.xml + $(XSLT) $< $(DOCSTYLE) > $@ + +%.fo : %.xml +ifeq ($(FORMATTER),tex) + $(XSLT) $< $(FOSTYLE) $@ $(FO_OPTS) passivetex.extensions=1 +else +ifeq ($(FORMATTER),fop) + $(XSLT) $< $(FOSTYLE) $@ $(FO_OPTS) fop.extensions=1 +else +ifeq ($(FORMATTER),xep) + $(XSLT) $< $(FOSTYLE) $@ $(FO_OPTS) xep.extensions=1 +else + $(XSLT) $< $(FOSTYLE) $@ $(FO_OPTS) +endif +endif +endif + +%.pdf : %.fo +ifeq ($(FORMATTER),tex) + pdftex "&pdfxmltex" $< + @if [ `grep Rerun $(basename $@).log | wc -l` -gt 0 ]; then \ + pdftex "&pdfxmltex" $< ; \ + fi + @if [ `grep Rerun $(basename $@).log | wc -l` -gt 0 ]; then \ + pdftex "&pdfxmltex" $< ; \ + fi +else +ifeq ($(FORMATTER),fop) + fop $< $@ +else +ifeq ($(FORMATTER),xep) + xep $< +else + echo How would you like me to make the PDF file? +endif +endif +endif + +clean: + for i in $(DIRS) __bogus__; do \ + if [ $$i != __bogus__ ] ; then \ + echo "$(MAKE) clean -C $$i"; $(MAKE) clean -C $$i; \ + fi \ + done + rm -f index.html + rm -f slides.pdf diff --git a/slides/demo/default/Makefile b/slides/demo/default/Makefile new file mode 100644 index 000000000..298352216 --- /dev/null +++ b/slides/demo/default/Makefile @@ -0,0 +1,9 @@ +include ../../../cvstools/Makefile.incl +SLIDES=../source/slides.xml + +index.html: ../../xsl/html/default.xsl + + $(XSLT) $(SLIDES) $< + +clean: + rm -f *.html diff --git a/slides/demo/frames1/Makefile b/slides/demo/frames1/Makefile new file mode 100644 index 000000000..18045b8f5 --- /dev/null +++ b/slides/demo/frames1/Makefile @@ -0,0 +1,8 @@ +include ../../../cvstools/Makefile.incl +SLIDES=../source/slides.xml + +toc.html: + $(XSLT) $(SLIDES) ../../xsl/html/frames.xsl - overlay=0 multiframe=0 dynamic.toc=0 active.toc=0 + +clean: + rm -f *.html diff --git a/slides/demo/frames2/Makefile b/slides/demo/frames2/Makefile new file mode 100644 index 000000000..00379cb25 --- /dev/null +++ b/slides/demo/frames2/Makefile @@ -0,0 +1,8 @@ +include ../../../cvstools/Makefile.incl +SLIDES=../source/slides.xml + +toc.html: + $(XSLT) $(SLIDES) ../../xsl/html/frames.xsl - overlay=1 multiframe=0 dynamic.toc=0 active.toc=0 + +clean: + rm -f *.html diff --git a/slides/demo/frames3/Makefile b/slides/demo/frames3/Makefile new file mode 100644 index 000000000..6bcad159c --- /dev/null +++ b/slides/demo/frames3/Makefile @@ -0,0 +1,8 @@ +include ../../../cvstools/Makefile.incl +SLIDES=../source/slides.xml + +toc.html: + $(XSLT) $(SLIDES) ../../xsl/html/frames.xsl - overlay=0 multiframe=1 dynamic.toc=0 active.toc=0 + +clean: + rm -f *.html diff --git a/slides/demo/frames4/Makefile b/slides/demo/frames4/Makefile new file mode 100644 index 000000000..d42206c3c --- /dev/null +++ b/slides/demo/frames4/Makefile @@ -0,0 +1,8 @@ +include ../../../cvstools/Makefile.incl +SLIDES=../source/slides.xml + +toc.html: + $(XSLT) $(SLIDES) ../../xsl/html/frames.xsl - overlay=0 multiframe=0 dynamic.toc=1 active.toc=0 + +clean: + rm -f *.html diff --git a/slides/demo/frames5/Makefile b/slides/demo/frames5/Makefile new file mode 100644 index 000000000..27e83e5c0 --- /dev/null +++ b/slides/demo/frames5/Makefile @@ -0,0 +1,8 @@ +include ../../../cvstools/Makefile.incl +SLIDES=../source/slides.xml + +toc.html: + $(XSLT) $(SLIDES) ../../xsl/html/frames.xsl - overlay=0 multiframe=0 dynamic.toc=0 active.toc=1 + +clean: + rm -f *.html diff --git a/slides/demo/frames6/Makefile b/slides/demo/frames6/Makefile new file mode 100644 index 000000000..d295ee7d2 --- /dev/null +++ b/slides/demo/frames6/Makefile @@ -0,0 +1,8 @@ +include ../../../cvstools/Makefile.incl +SLIDES=../source/slides.xml + +toc.html: + $(XSLT) $(SLIDES) ../../xsl/html/frames.xsl - overlay=1 multiframe=0 dynamic.toc=1 active.toc=1 + +clean: + rm -f *.html diff --git a/slides/demo/frames7/Makefile b/slides/demo/frames7/Makefile new file mode 100644 index 000000000..e17d64958 --- /dev/null +++ b/slides/demo/frames7/Makefile @@ -0,0 +1,8 @@ +include ../../../cvstools/Makefile.incl +SLIDES=../source/slides.xml + +toc.html: + $(XSLT) $(SLIDES) ../../xsl/html/frames.xsl - overlay=0 multiframe=1 dynamic.toc=1 active.toc=1 + +clean: + rm -f *.html diff --git a/slides/demo/plain/Makefile b/slides/demo/plain/Makefile new file mode 100644 index 000000000..61b849e22 --- /dev/null +++ b/slides/demo/plain/Makefile @@ -0,0 +1,9 @@ +include ../../../cvstools/Makefile.incl +SLIDES=../source/slides.xml + +index.html: ../../xsl/html/plain.xsl + + $(XSLT) $(SLIDES) $< + +clean: + rm -f *.html diff --git a/slides/demo/tables/Makefile b/slides/demo/tables/Makefile new file mode 100644 index 000000000..d0e3bf802 --- /dev/null +++ b/slides/demo/tables/Makefile @@ -0,0 +1,9 @@ +include ../../../cvstools/Makefile.incl +SLIDES=../source/slides.xml + +index.html: ../../xsl/html/tables.xsl + + $(XSLT) $(SLIDES) $< + +clean: + rm -f *.html diff --git a/slides/demo/vslides/Makefile b/slides/demo/vslides/Makefile new file mode 100644 index 000000000..2deb8b692 --- /dev/null +++ b/slides/demo/vslides/Makefile @@ -0,0 +1,9 @@ +include ../../../cvstools/Makefile.incl +SLIDES=../source/slides.xml + +index.html: ../../xsl/html/vslides.xsl + + $(XSLT) $(SLIDES) $< + +clean: + rm -f *.html diff --git a/slides/demo/w3c/Makefile b/slides/demo/w3c/Makefile new file mode 100644 index 000000000..b26da6d71 --- /dev/null +++ b/slides/demo/w3c/Makefile @@ -0,0 +1,9 @@ +include ../../../cvstools/Makefile.incl +SLIDES=../source/slides.xml + +index.html: ../../xsl/html/w3c.xsl + + $(XSLT) $(SLIDES) $< + +clean: + rm -f *.html