4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2006 The Trustees of Princeton University
7 # $Id: Makefile,v 1.5 2006/07/18 22:41:44 mlhuang Exp $
10 vpath GenDoc.xsl ../../plc_www/doc
13 all: myplc.pdf myplc.php
18 .myplc.xml.valid: architecture.eps architecture.png plc_variables.xml plc_devel_variables.xml
20 %_variables.xml: variables.xsl %_config.xml
21 xsltproc $(XSLFLAGS) --output $@ $^
25 xmllint --valid --output $@ $<
27 # Compile it into other formats
28 FORMATS := dvi html man ps rtf tex texi txt
30 DOCBOOK2FLAGS := -V biblio-number=1
33 %.$(1): %.xml .%.xml.valid
34 docbook2$(1) --nochunks $$(DOCBOOK2FLAGS) $$<
37 # docbook2pdf craps out on figures
42 %.php: GenDoc.xsl .%.xml.valid
43 xsltproc $(XSLFLAGS) --output $@ $^
45 $(foreach format,$(FORMATS),$(eval $(call docbook2,$(format))))
48 rm -f $(patsubst %,*.%,$(FORMATS)) *.pdf *.php .*.xml.valid variables.xml