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
16 .myplc.xml.valid: architecture.eps architecture.png plc_variables.xml plc_devel_variables.xml
18 %_variables.xml: variables.xsl %_config.xml
19 xsltproc $(XSLFLAGS) --output $@ $^
23 xmllint --valid --output $@ $<
25 # Compile it into other formats
26 FORMATS := dvi html man ps rtf tex texi txt
28 DOCBOOK2FLAGS := -V biblio-number=1
31 %.$(1): %.xml .%.xml.valid
32 docbook2$(1) --nochunks $$(DOCBOOK2FLAGS) $$<
35 # docbook2pdf craps out on figures
40 %.php: GenDoc.xsl .%.xml.valid
41 xsltproc $(XSLFLAGS) --output $@ $^
43 $(foreach format,$(FORMATS),$(eval $(call docbook2,$(format))))
46 rm -f $(patsubst %,*.%,$(FORMATS)) *.pdf .*.xml.valid variables.xml