# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: Makefile.in,v 1.6 2005/09/07 22:05:20 mlhuang Exp $
+# $Id$
#
-all: myplc.pdf
+all: myplc.html
+
+# Dependencies
+.myplc.xml.valid: architecture.eps architecture.png plc_variables.xml
+
+plc_variables.xml: variables.xsl ../default_config.xml
+ xsltproc $(XSLFLAGS) --output $@ $^
# Validate the XML
.%.xml.valid: %.xml
xmllint --valid --output $@ $<
+# docbook2pdf craps out on figures
+%.pdf: %.ps
+ ps2pdf $< $@
+
# Compile it into other formats
FORMATS := dvi html man ps rtf tex texi txt
docbook2$(1) --nochunks $$(DOCBOOK2FLAGS) $$<
endef
-# docbook2pdf craps out on figures
-%.pdf: %.ps
- ps2pdf $< $@
-
$(foreach format,$(FORMATS),$(eval $(call docbook2,$(format))))
-docclean:
- rm -f $(patsubst %,*.%,$(FORMATS)) *.pdf .*.xml.valid
-
-clean: docclean
+clean:
+ rm -f $(patsubst %,*.%,$(FORMATS)) *.pdf .*.xml.valid plc_variables.xml
-.PHONY: docclean
+.PHONY: all docclean