4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2006 The Trustees of Princeton University
10 all: myplc.pdf myplc.html
15 .myplc.xml.valid: architecture.eps architecture.png plc_variables.xml
17 plc_variables.xml: variables.xsl ../default_config.xml
18 xsltproc $(XSLFLAGS) --output $@ $^
22 xmllint --valid --output $@ $<
24 # Compile it into other formats
25 FORMATS := dvi html man ps rtf tex texi txt
27 DOCBOOK2FLAGS := -V biblio-number=1
30 %.$(1): %.xml .%.xml.valid
31 docbook2$(1) --nochunks $$(DOCBOOK2FLAGS) $$<
34 # docbook2pdf craps out on figures
39 %.php: GenDoc.xsl .%.xml.valid
40 xsltproc $(XSLFLAGS) --output $@ $^
42 $(foreach format,$(FORMATS),$(eval $(call docbook2,$(format))))
45 rm -f $(patsubst %,*.%,$(FORMATS)) *.pdf *.php .*.xml.valid variables.xml