# value of ZIP_EXCLUDES is a space-separated list of any file or
# directory names (shell wildcards OK) that should be excluded
# from the zip file and tarball for the release
-DISTRIB_EXCLUDES = extensions/xsltproc doc/reference.txt$$ doc/reference.pdf$$
+DISTRIB_EXCLUDES = extensions/xsltproc doc/reference.txt$$ reference.txt.html$$ doc/reference.fo$$ doc/reference.pdf$$
# value of DISTRIB_PACKAGES is a space-separated list of any
# directory names that should be packaged as separate zip/tar
$(MAKE) -C docsrc
doc: docsrc
- $(MAKE) -C doc
+ $(MAKE) -C doc RELVER=$(RELVER)
website:
$(MAKE) -C ../website/xsl
DIRS=common refentry lib html fo manpages wordml slides website template
+# build reference.pdf.gz except for snapshot releases
+ifneq (snapshot,$(findstring snapshot,$(RELVER)))
+all: reference.txt.gz reference.pdf.gz html
+else
all: reference.txt.gz html
+endif
html: base copyright.html warranty.html reference.html index.html
reference.pdf: reference.fo
$(XEP) $(XEPFLAGS) $<
-reference.txt: ../docsrc/reference.dbk $(REFERENCETXTXSL)
- $(XSLTPROC) --xinclude $(REFERENCETXTXSL) $< | $(TXT_MAKER) $(TXT_MAKER_FLAGS) > $@
+reference.txt.html: ../docsrc/reference.dbk $(REFERENCETXTXSL)
+ $(XSLTPROC) --xinclude $(REFERENCETXTXSL) $< > $@
+
+reference.txt: reference.txt.html
+ $(TXT_MAKER) $(TXT_MAKER_FLAGS) $< > $@
reference.pdf.gz: reference.pdf
cat $< | $(GZIP) $(GZIPFLAGS) > $@