4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2006 The Trustees of Princeton University
7 # $Id: Makefile,v 1.1 2006/04/12 21:21:36 mlhuang Exp $
10 vpath GenDoc.xsl ../../plc_www/doc
15 .myplc.xml.valid: architecture.eps architecture.png
19 xmllint --valid --output $@ $<
21 # Compile it into other formats
22 FORMATS := dvi html man ps rtf tex texi txt
24 DOCBOOK2FLAGS := -V biblio-number=1
27 %.$(1): %.xml .%.xml.valid
28 docbook2$(1) --nochunks $$(DOCBOOK2FLAGS) $$<
31 # docbook2pdf craps out on figures
36 %.php: GenDoc.xsl .%.xml.valid
37 xsltproc $(XSLFLAGS) --output $@ $^
39 $(foreach format,$(FORMATS),$(eval $(call docbook2,$(format))))
42 rm -f $(patsubst %,*.%,$(FORMATS)) *.pdf .*.xml.valid