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
 
-@MANUAL@.html: 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 $@
 
-@MANUAL@.html.gz: @MANUAL@.html
-       gzip -9 -c @MANUAL@.html > $@
-
-@MANUAL@.rtf.gz: @MANUAL@.rtf
-       gzip -9 -c @MANUAL@.rtf > $@
-
-@MANUAL@.txt.gz: @MANUAL@.txt
-       gzip -9 -c @MANUAL@.txt > $@
-
-# {{{ TeX based formats including PostScript and PDF
-
-@MANUAL@.tex: manual.xml
-       $(JADE) $(CATALOG) -d $(PRINT_STYLESHEET) -t tex $(XMLDCL) $<
-       mv manual.tex $@
-
-@MANUAL@.pdf: @MANUAL@.dvi
-       dvipdfm -o @MANUAL@.pdf -p @PDF_PAPER_TYPE@ @MANUAL@.dvi
-
-@MANUAL@.pdf.gz: @MANUAL@.pdf
-       gzip -9 -c @MANUAL@.pdf > $@
-
-@MANUAL@.pdf.bz2: @MANUAL@.pdf
-       bzip2 -9 -c @MANUAL@.pdf > $@
-
-@MANUAL@.pdf.zip: @MANUAL@.pdf
-       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 $<
-
-# }}}
+@MANUAL@.html: @MANUAL@.xml $(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
 
-@MANUAL@.txt: @MANUAL@.html
-       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@
 
@@ -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


Reply via email to