4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2006 The Trustees of Princeton University
10 vpath GenDoc.xsl ../../plc_www/doc
13 # dont redo php by default, this requires plc_www (see above)
14 # that we build separately (has no doc/ subdir anyway)
15 # note that the build host (myplc-devel) needs ghostscript
16 # that we added only on 20 july 2007
17 all: myplc.pdf myplc.html
24 .myplc.xml.valid: architecture.eps architecture.png plc_variables.xml plc_devel_variables.xml
26 %_variables.xml: variables.xsl %_config.xml
27 xsltproc $(XSLFLAGS) --output $@ $^
31 xmllint --valid --output $@ $<
33 # Compile it into other formats
34 FORMATS := dvi html man ps rtf tex texi txt
36 DOCBOOK2FLAGS := -V biblio-number=1
39 %.$(1): %.xml .%.xml.valid
40 docbook2$(1) --nochunks $$(DOCBOOK2FLAGS) $$<
43 # docbook2pdf craps out on figures
48 %.php: GenDoc.xsl .%.xml.valid
49 xsltproc $(XSLFLAGS) --output $@ $^
51 $(foreach format,$(FORMATS),$(eval $(call docbook2,$(format))))
54 rm -f $(patsubst %,*.%,$(FORMATS)) *.pdf *.php .*.xml.valid variables.xml