first draft for the myplc-docs package (cross-module change)
[nodemanager.git] / doc / Makefile
index 4308fac..d40adb0 100644 (file)
@@ -4,15 +4,18 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: Makefile,v 1.2 2006/11/03 20:36:05 thierry Exp $
+# $Id: Makefile 5574 2007-10-25 20:33:17Z thierry $
 #
 
 all: NMAPI.html
 
 .NMAPI.xml.valid: Methods.xml
 
-Methods.xml: DocBook.py ../api_calls.py
-       PYTHONPATH=..:../../PLCAPI python $< > $@
+NM_SOURCES = ../api_calls.py
+
+# path needs to mention PLCAPI/doc (for DocBook) and PLCAPI/ (for PLC.Parameter)
+Methods.xml: DocBookLocal.py $(NM_SOURCES)
+       PYTHONPATH=..:../../PLCAPI:../../PLCAPI/doc DocBookLocal.py > $@
 
 #
 # Documentation
@@ -40,6 +43,4 @@ $(foreach format,$(FORMATS),$(eval $(call docbook2,$(format))))
 clean:
        rm -f $(patsubst %,*.%,$(FORMATS)) .*.xml.valid Methods.xml
 
-force:
-
-.PHONY: force clean docclean
+.PHONY: clean all