hholzgra Tue Jan 8 15:38:51 2002 EDT
Modified files:
/phpdoc Makefile.in
Log:
$< is not portable in normal rules
introducing folding hook comments
Index: phpdoc/Makefile.in
diff -u phpdoc/Makefile.in:1.95 phpdoc/Makefile.in:1.96
--- phpdoc/Makefile.in:1.95 Tue Jan 8 15:27:50 2002
+++ phpdoc/Makefile.in Tue Jan 8 15:38:50 2002
@@ -17,12 +17,15 @@
#
#
-# $Id: Makefile.in,v 1.95 2002/01/08 20:27:50 hholzgra Exp $
+# $Id: Makefile.in,v 1.96 2002/01/08 20:38:50 hholzgra Exp $
#
all: html
+# {{{ variables
+
VPATH=@srcdir@
+
srcdir=@srcdir@
scriptdir=@srcdir@/scripts
PHP_SOURCE=@PHP_SOURCE@
@@ -52,8 +55,11 @@
DIST_FILES=@MANUAL@.zip @MANUAL@.tar.gz @MANUAL@.tar.bz2 \
@MANUAL@.html.gz @MANUAL@.txt.gz @MANUAL@.doc.pdb
MIRROR_TARGETS=php/index.php html/index.html $(DIST_FILES)
+
PDF_FILES=@MANUAL@.pdf.gz @MANUAL@.pdf.bz2 @MANUAL@.pdf.zip
+# }}}
+
@AUTOGENERATED_RULES@
manual.xml: $(srcdir)/manual.xml.in .manual.xml
@@ -131,13 +137,15 @@
$(JADE) $(CATALOG) -V nochunks -d $(HTML_STYLESHEET) -t sgml $(XMLDCL)
manual.xml > $@
@MANUAL@.html.gz: @MANUAL@.html
- gzip -9 -c $< > $@
+ gzip -9 -c @MANUAL@.html > $@
@MANUAL@.rtf.gz: @MANUAL@.rtf
- gzip -9 -c $< > $@
+ gzip -9 -c @MANUAL@.rtf > $@
@MANUAL@.txt.gz: @MANUAL@.txt
- gzip -9 -c $< > $@
+ gzip -9 -c @MANUAL@.txt > $@
+
+# {{{ TeX based formats including PostScript and PDF
@MANUAL@.tex: manual.xml
$(JADE) $(CATALOG) -d $(PRINT_STYLESHEET) -t tex $(XMLDCL) $<
@@ -147,13 +155,30 @@
dvipdfm -o @MANUAL@.pdf -p @PDF_PAPER_TYPE@ @MANUAL@.dvi
@MANUAL@.pdf.gz: @MANUAL@.pdf
- gzip -9 -c $< > $@
+ gzip -9 -c @MANUAL@.pdf > $@
@MANUAL@.pdf.bz2: @MANUAL@.pdf
- bzip2 -9 -c $< > $@
+ bzip2 -9 -c @MANUAL@.pdf > $@
@MANUAL@.pdf.zip: @MANUAL@.pdf
- zip -9 $@ $<
+ zip -9 $@ @MANUAL@.pdf
+
+# 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 $<
+
+# }}}
html/index.html: manual.xml $(HTML_DEPS)
@test -d html || mkdir html
@@ -164,7 +189,7 @@
-$(JADE) $(CATALOG) -d $(PHPWEB_STYLESHEET) -V use-output-dir -t sgml
$(XMLDCL) manual.xml
@MANUAL@.txt: @MANUAL@.html
- lynx -term=vt100 -nolist -dump file:`pwd`/$< > $@
+ lynx -term=vt100 -nolist -dump file:`pwd`/@MANUAL@.html > $@
@MANUAL@.doc.pdb: @MANUAL@.txt scripts/makedoc
./scripts/makedoc -b @MANUAL@.txt @MANUAL@.doc.pdb @PALMDOCTITLE@
@@ -193,7 +218,7 @@
$(JADE) $(CATALOG) -V nochunks -d dsssl/install.dsl -t sgml $(XMLDCL)
install.xml > $@
install.txt: install.html
- lynx -nolist -dump file:`pwd`/$< > $@
+ 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
@@ -202,19 +227,8 @@
.xml.rtf:
$(JADE) $(CATALOG) -d $(PRINT_STYLESHEET) -t rtf $(XMLDCL) $<
-# 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 $<
+
+# {{{ tests
# test all possible errors
test: manual.xml
@@ -224,6 +238,10 @@
test_man_gen: manual.xml
$(NSGMLS) -wno-idref -i lang-$(LANG) -s $(XMLDCL) manual.xml
+# }}}
+
+# {{{ cleanup
+
clean:
rm -rf html php fancy figures howto/html
rm -f @MANUAL@.txt [a-z]*.html @MANUAL@.rtf manual.info
@@ -235,3 +253,5 @@
distclean: clean
for file in `find . -name "*.in"`; do rm `dirname $$file`/`basename $$file
.in`; done
+
+# }}}
\ No newline at end of file