2003-07-09 23:51:45 +00:00
|
|
|
READMEXMLFILES = README.xml NEWS.xml TODO.xml AUTHORS.xml
|
|
|
|
READMEFILES = $(READMEXMLFILES) gst-python.ent
|
|
|
|
|
|
|
|
RELNOTESXMLFILES = RELNOTES.xml
|
|
|
|
RELNOTESFILES = $(RELNOTESXMLFILES) $(READMEXMLFILES) gst-python.ent
|
|
|
|
|
|
|
|
XMLFILES = $(READMEXMLFILES) $(RELNOTESXMLFILES)
|
|
|
|
XSLFILES = common.xsl full.xsl part.xsl html.xsl pdf.xsl
|
2003-06-26 08:48:52 +00:00
|
|
|
CSSFILES = gst-python.css
|
2003-06-26 08:02:50 +00:00
|
|
|
|
2003-07-09 23:51:45 +00:00
|
|
|
EXTRA_DIST = $(XMLFILES) $(XSLFILES) $(CSSFILES)
|
|
|
|
|
|
|
|
DOCS = README.txt README.html #gst-python.pdf
|
|
|
|
TOPDOCS = README.txt NEWS.txt TODO.txt AUTHORS.txt
|
|
|
|
RELNOTES = RELNOTES.txt
|
|
|
|
|
|
|
|
CLEANFILES = $(DOCS) $(TOPDOCS) $(RELNOTES) tmpbuildcatalog
|
|
|
|
|
|
|
|
if BUILD_DOCS
|
|
|
|
|
|
|
|
XMLTOFLAGS = --skip-validation -o $(CURDIR)
|
|
|
|
XMLLINTFLAGS = --xinclude --noout --loaddtd --catalogs --postvalid
|
2003-06-26 08:02:50 +00:00
|
|
|
|
2003-06-26 08:48:52 +00:00
|
|
|
all: $(DOCS)
|
2003-06-26 08:02:50 +00:00
|
|
|
|
2003-07-09 23:51:45 +00:00
|
|
|
tmpbuildcatalog: gst-python.ent
|
2004-07-03 04:13:22 +00:00
|
|
|
$(XMLCATALOG) --noout --create $@
|
|
|
|
$(XMLCATALOG) --noout --add system `cd $(srcdir) && pwd`/gst-python.ent $(CURDIR)/gst-python.ent $@
|
|
|
|
$(XMLCATALOG) --noout --add system $(srcdir)/gst-python.ent $(CURDIR)/gst-python.ent $@
|
2003-06-26 08:48:52 +00:00
|
|
|
|
2004-03-18 15:44:52 +00:00
|
|
|
#check: tmpbuildcatalog
|
|
|
|
# for d in $(XMLFILES); do \
|
|
|
|
# $(XMLLINT) $(XMLLINTFLAGS) $(srcdir)/$$d; \
|
|
|
|
# done
|
2003-06-26 08:48:52 +00:00
|
|
|
|
2003-07-09 23:51:45 +00:00
|
|
|
dist-docs: $(TOPDOCS)
|
2003-06-26 08:48:52 +00:00
|
|
|
|
2003-07-09 23:51:45 +00:00
|
|
|
dist-hook: dist-docs
|
|
|
|
for d in $(TOPDOCS); do \
|
2003-07-10 04:27:47 +00:00
|
|
|
install -m 444 $$d $(distdir)/../`basename $$d .txt`; \
|
2003-07-09 23:51:45 +00:00
|
|
|
done
|
2003-06-26 08:48:52 +00:00
|
|
|
|
2003-07-09 23:51:45 +00:00
|
|
|
# full docs
|
|
|
|
|
|
|
|
# filter out xsl deps and make xslto flags
|
|
|
|
xmltoxslflags = $(foreach xsl,$(filter %xsl,$(filter-out $(1),$(2))),-m $(srcdir)/$(xsl))
|
|
|
|
FULLDEPS = common.xsl full.xsl tmpbuildcatalog
|
|
|
|
|
|
|
|
README.txt: $(READMEFILES) $(FULLDEPS)
|
|
|
|
$(XMLTO) $(XMLTOFLAGS) $(call xmltoxslflags,$<,$+) txt $<
|
|
|
|
|
|
|
|
README.html: $(READMEFILES) $(FULLDEPS) html.xsl
|
|
|
|
$(XMLTO) $(XMLTOFLAGS) $(call xmltoxslflags,$<,$+) xhtml-nochunks $<
|
|
|
|
|
|
|
|
README.pdf: $(READMEFILES) $(FULLDEPS) pdf.xsl
|
|
|
|
$(XMLTO) $(XMLTOFLAGS) $(call xmltoxslflags,$<,$+) pdf $<
|
|
|
|
|
|
|
|
# partial docs
|
|
|
|
|
|
|
|
PARTIALDEPS = gst-python.ent common.xsl part.xsl tmpbuildcatalog
|
|
|
|
|
|
|
|
RELNOTES.txt: $(RELNOTESFILES) $(PARTIALDEPS)
|
|
|
|
$(XMLTO) $(XMLTOFLAGS) $(call xmltoxslflags,$<,$+) txt $<
|
|
|
|
|
|
|
|
%.txt: %.xml $(PARTIALDEPS)
|
|
|
|
$(XMLTO) $(XMLTOFLAGS) $(call xmltoxslflags,$<,$+) txt $<
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
@echo "Error: Doc building must be enabled for autogeneration of README, NEWS, TODO, and AUTHORS for distribution."
|
|
|
|
@false
|
|
|
|
|
|
|
|
endif
|