X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=doc%2FMakefile;h=1c4a30973ae441f18e99119fa860d7a2c17df45b;hb=e57432c1dfdfeaa52cc32799e2abbc34b7704ce9;hp=9ac5aea4b11a7060d4911a07b3e6e836f89952fe;hpb=d669791050a13869ef50bdda5a734af80ecd6abb;p=nodemanager.git diff --git a/doc/Makefile b/doc/Makefile index 9ac5aea..1c4a309 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -4,18 +4,32 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: Makefile 5574 2007-10-25 20:33:17Z thierry $ -# all: NMAPI.html +# XML - as opposed to SGML - requires an identifier - see +# http://www.docbook.org/tdg/en/html/appb.html +# and, openjade opens http connections when using the official URL +# as an identifier; this is slow, and sometimes fails and breaks the build + +# locating locally installed docbook43 dtd - fedora-specific +remote-docbook-43 = http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd +local-docbook-43 = $(wildcard /usr/share/sgml/docbook/xml-dtd-4.3-*/docbookx.dtd) +docbook-43=$(if $(local-docbook-43),$(local-docbook-43),$(remote-docbook-43)) + +NMAPI.xml: NMAPI.xml.in + $(if $(local-docbook-43), \ + echo Using locally installed DTD $(local-docbook-43), \ + echo WARNING - could not locate local DTD - using remote $(remote-docbook-43)) + sed -e s,@DOCBOOK-43@,$(docbook-43), $< > $@ + .NMAPI.xml.valid: Methods.xml 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 > $@ + PYTHONPATH=..:../../plcapi:../../plcapi/doc ./DocBookLocal.py > $@ # # Documentation