hholzgra Tue Jan 8 17:26:34 2002 EDT
Modified files:
/phpdoc Makefile.in
Log:
PLEASE TEST THIS OUT!
i have tried to clean up the makefile by using as much
implicit suffix rules as possible ...
Index: phpdoc/Makefile.in
diff -u phpdoc/Makefile.in:1.96 phpdoc/Makefile.in:1.97
--- phpdoc/Makefile.in:1.96 Tue Jan 8 15:38:50 2002
+++ phpdoc/Makefile.in Tue Jan 8 17:26:34 2002
@@ -17,7 +17,7 @@
#
#
-# $Id: Makefile.in,v 1.96 2002/01/08 20:38:50 hholzgra Exp $
+# $Id: Makefile.in,v 1.97 2002/01/08 22:26:34 hholzgra Exp $
#
all: html
@@ -133,52 +133,12 @@
scripts/makedoc: scripts/makedoc.cc
g++ -o scripts/makedoc scripts/makedoc.cc
-@[email protected]: manual.xml $(HTML_DEPS)
- $(JADE) $(CATALOG) -V nochunks -d $(HTML_STYLESHEET) -t sgml $(XMLDCL)
manual.xml > $@
+# intermediate file for name change
+.INTERMEDIATE: php_manual_en.xml
+php_manual_en.xml: manual.xml
+ cp manual.xml $@
-@[email protected]: @[email protected]
- gzip -9 -c @[email protected] > $@
-
-@[email protected]: @[email protected]
- gzip -9 -c @[email protected] > $@
-
-@[email protected]: @[email protected]
- gzip -9 -c @[email protected] > $@
-
-# {{{ TeX based formats including PostScript and PDF
-
-@[email protected]: manual.xml
- $(JADE) $(CATALOG) -d $(PRINT_STYLESHEET) -t tex $(XMLDCL) $<
- mv manual.tex $@
-
-@[email protected]: @[email protected]
- dvipdfm -o @[email protected] -p @PDF_PAPER_TYPE@ @[email protected]
-
-@[email protected]: @[email protected]
- gzip -9 -c @[email protected] > $@
-
-@[email protected]: @[email protected]
- bzip2 -9 -c @[email protected] > $@
-
-@[email protected]: @[email protected]
- zip -9 $@ @[email protected]
-
-# general TeX->dvi ru
-# runs three times -
-# 1. generates the dvi with a completely bogus table of contents
-# 2. generates the dvi with a table of contents that is off based on the size
-# of the table of contents
-# 3. generates a dvi with all the right page numbers and such
-.tex.dvi:
- # a hack around bugs in jade/jadetex...
- mv $< $<.tmp
- sed -e '/HeadingText/,/endHeadPar/ s/_/\\137/g' $<.tmp > $<
- rm $<.tmp
- -jadetex $<
- -jadetex $<
- -jadetex $<
-
-# }}}
+@[email protected]: @[email protected] $(HTML_DEPS)
html/index.html: manual.xml $(HTML_DEPS)
@test -d html || mkdir html
@@ -188,9 +148,6 @@
@test -d php || mkdir php
-$(JADE) $(CATALOG) -d $(PHPWEB_STYLESHEET) -V use-output-dir -t sgml
$(XMLDCL) manual.xml
-@[email protected]: @[email protected]
- lynx -term=vt100 -nolist -dump file:`pwd`/@[email protected] > $@
-
@[email protected]: @[email protected] scripts/makedoc
./scripts/makedoc -b @[email protected] @[email protected] @PALMDOCTITLE@
@@ -213,19 +170,55 @@
howto/howto.html.tar.gz: howto/html/index.html $(HOWTO_DEPS)
tar -cvzf $@ howto/html/*.html
-
+
install.html: install.xml $(HTML_DEPS)
$(JADE) $(CATALOG) -V nochunks -d dsssl/install.dsl -t sgml $(XMLDCL)
install.xml > $@
-install.txt: install.html
- lynx -nolist -dump file:`pwd`/install.html > $@
-
# File endings we are going to define general rules for:
-.SUFFIXES: .html .xml .sgml .tex .dvi .ps .rtf .pdf
+.SUFFIXES: .html .xml .sgml .tex .dvi .ps .pdf .rtf .gz .bz2 .txt
# General rules:
-.xml.rtf:
+%.rtf: %.xml
$(JADE) $(CATALOG) -d $(PRINT_STYLESHEET) -t rtf $(XMLDCL) $<
+
+%.gz: %
+ gzip -9 -c $< > $@
+
+%.bz2: %
+ bzip2 -9 -c $< > $@
+
+%.zip: %
+ zip -9 $@ $<
+
+%.pdf: %.dvi
+ dvipdfm -o $@ -p @PDF_PAPER_TYPE@ $<
+
+%.ps: %.dvi
+ dvips -o $@ -t @PDF_PAPER_TYPE@ $<
+
+%.html: %.xml
+ $(JADE) $(CATALOG) -V nochunks -d $(HTML_STYLESHEET) -t sgml $(XMLDCL) $< > $@
+
+%.txt: %.html
+ lynx -nolist -dump file:`pwd`/$< > $@
+
+%.tex: %.xml
+ $(JADE) $(CATALOG) -d $(PRINT_STYLESHEET) -t tex $(XMLDCL) $<
+
+# general TeX->dvi ru
+# runs three times -
+# 1. generates the dvi with a completely bogus table of contents
+# 2. generates the dvi with a table of contents that is off based on the size
+# of the table of contents
+# 3. generates a dvi with all the right page numbers and such
+%.dvi : %.tex
+ # a hack around bugs in jade/jadetex...
+ mv $< $<.tmp
+ sed -e '/HeadingText/,/endHeadPar/ s/_/\\137/g' $<.tmp > $<
+ rm $<.tmp
+ -jadetex $<
+ -jadetex $<
+ -jadetex $<
# {{{ tests