first draft for the myplc-docs package (cross-module change)
[plcapi.git] / doc / Makefile
index 1340f8e..4a303c5 100644 (file)
@@ -4,15 +4,17 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: plcsh,v 1.3 2006/01/09 19:57:24 mlhuang Exp $
+# $Id$
 #
 
-all: PLCAPI.pdf
+all: PLCAPI.html
 
 .PLCAPI.xml.valid: Methods.xml
 
-Methods.xml: DocBook.py ../PLC/__init__.py ../PLC/Methods/__init__.py
-       PYTHONPATH=.. python $< > $@
+API_SOURCES = ../PLC/__init__.py ../PLC/Methods/__init__.py
+
+Methods.xml: DocBook.py DocBookLocal.py $(API_SOURCES)
+       PYTHONPATH=.. DocBookLocal.py > $@
 
 #
 # Documentation
@@ -38,8 +40,6 @@ endef
 $(foreach format,$(FORMATS),$(eval $(call docbook2,$(format))))
 
 clean:
-       rm -f $(patsubst %,*.%,$(FORMATS)) .*.xml.valid
-
-force:
+       rm -f $(patsubst %,*.%,$(FORMATS)) .*.xml.valid Methods.xml
 
-.PHONY: force clean docclean
+.PHONY: clean all