Change v3 to v4 yumgroups.xml
[myplc.git] / doc / Makefile
index da88c87..2e347bb 100644 (file)
@@ -4,15 +4,21 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: Makefile,v 1.1 2006/04/12 21:21:36 mlhuang Exp $
+# $Id: Makefile,v 1.5 2006/07/18 22:41:44 mlhuang Exp $
 #
 
 vpath GenDoc.xsl ../../plc_www/doc
+vpath %_config.xml ..
 
-all: myplc.pdf
+all: myplc.pdf myplc.php
+
+.PHONY: all
 
 # Dependencies
-.myplc.xml.valid: architecture.eps architecture.png
+.myplc.xml.valid: architecture.eps architecture.png plc_variables.xml plc_devel_variables.xml
+
+%_variables.xml: variables.xsl %_config.xml
+       xsltproc $(XSLFLAGS) --output $@ $^
 
 # Validate the XML
 .%.xml.valid: %.xml
@@ -39,7 +45,7 @@ endef
 $(foreach format,$(FORMATS),$(eval $(call docbook2,$(format))))
 
 docclean:
-       rm -f $(patsubst %,*.%,$(FORMATS)) *.pdf .*.xml.valid
+       rm -f $(patsubst %,*.%,$(FORMATS)) *.pdf *.php .*.xml.valid variables.xml 
 
 clean: docclean