do not dereference symlinks when chowning files back to the SUDO_USER
[myplc.git] / doc / Makefile
index 14a62ed..2e347bb 100644 (file)
@@ -4,18 +4,20 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: Makefile,v 1.3 2006/04/24 22:14:56 mlhuang Exp $
+# $Id: Makefile,v 1.5 2006/07/18 22:41:44 mlhuang Exp $
 #
 
 vpath GenDoc.xsl ../../plc_www/doc
-vpath plc_config.xml ..
+vpath %_config.xml ..
 
 all: myplc.pdf myplc.php
 
+.PHONY: all
+
 # Dependencies
-.myplc.xml.valid: architecture.eps architecture.png variables.xml
+.myplc.xml.valid: architecture.eps architecture.png plc_variables.xml plc_devel_variables.xml
 
-variables.xml: variables.xsl plc_config.xml
+%_variables.xml: variables.xsl %_config.xml
        xsltproc $(XSLFLAGS) --output $@ $^
 
 # Validate the XML
@@ -43,7 +45,7 @@ endef
 $(foreach format,$(FORMATS),$(eval $(call docbook2,$(format))))
 
 docclean:
-       rm -f $(patsubst %,*.%,$(FORMATS)) *.pdf .*.xml.valid variables.xml
+       rm -f $(patsubst %,*.%,$(FORMATS)) *.pdf *.php .*.xml.valid variables.xml 
 
 clean: docclean