4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2006 The Trustees of Princeton University
13 .myplc.xml.valid: architecture.eps architecture.png plc_variables.xml
15 plc_variables.xml: variables.xsl ../default_config.xml
16 xsltproc $(XSLFLAGS) --output $@ $^
20 xmllint --valid --output $@ $<
22 # docbook2pdf craps out on figures
26 # Compile it into other formats
27 FORMATS := dvi html man ps rtf tex texi txt
29 DOCBOOK2FLAGS := -V biblio-number=1
32 %.$(1): %.xml .%.xml.valid
33 docbook2$(1) --nochunks $$(DOCBOOK2FLAGS) $$<
36 $(foreach format,$(FORMATS),$(eval $(call docbook2,$(format))))
39 rm -f $(patsubst %,*.%,$(FORMATS)) *.pdf .*.xml.valid plc_variables.xml