DIRS=common refentry lib html fo manpages wordml slides website template pi
-all: copyright.html warranty.html reference.html index.html reference.txt.gz
+all: html reference.txt.gz
+
+html: base copyright.html warranty.html reference.html index.html
+
+base: docsrc
for i in $(DIRS) __bogus__; do \
if [ $$i != __bogus__ ] ; then \
echo "$(MAKE) -C $$i"; $(MAKE) -C $$i; \
fi \
done
+docsrc:
+ $(MAKE) -C ../docsrc
+
copyright.html: copyright.xml $(RSTYLE)
$(XJPARSE) $(VPATH)/$<
$(XSLT) $(PROCOPT) $< $(RSTYLE) $@ $(XSLTOPT)
index.html: reference.html
cp -pR $< $@
-reference.pdf: ../docsrc/reference.dbk $(REFERENCE_MAKEFILE)
+reference.pdf: ../docsrc/reference.dbk docsrc $(REFERENCE_MAKEFILE)
$(MAKE) -f $(REFERENCE_MAKEFILE) ../docsrc/reference.pdf PDF_MAKER=$(PDF_MAKER) DOCBOOK_FILE_EXTENSION=$(DOCBOOK_FILE_EXTENSION) FO_PARAMS=$(FO_PARAMS) \
&& mv ../docsrc/reference.pdf .
-reference.txt: ../docsrc/reference.dbk $(REFERENCE_MAKEFILE)
+reference.txt: ../docsrc/reference.dbk docsrc $(REFERENCE_MAKEFILE)
$(MAKE) -f $(REFERENCE_MAKEFILE) ../docsrc/reference.txt TXT_MAKER=$(TXT_MAKER) TXT_MAKER_FLAGS=$(TXT_MAKER_FLAGS) DOCBOOK_FILE_EXTENSION=$(DOCBOOK_FILE_EXTENSION) HTML_PARAMS=$(HTML_PARAMS) \
&& mv ../docsrc/reference.txt . && $(RM) ../docsrc/reference.html
echo "$(MAKE) -C $$i clean"; $(MAKE) -C $$i clean; \
fi \
done
- $(RM) ../docsrc/reference.fo
- $(RM) ../docsrc/reference.pdf
- $(RM) ../docsrc/reference.txt
$(RM) reference.pdf
$(RM) reference.txt
$(RM) reference.pdf.gz
MAKE_ELEMENTS_XSL=make-elements.xsl
MAKE_PARAMS_XSL=make-xsl-params.xsl
-all: docbook-elements.xsl xsl-params.xsl
+all: base docbook-elements.xsl xsl-params.xsl
+
+base:
for i in $(DIRS) __bogus__; do \
if [ $$i != __bogus__ ] ; then \
echo "$(MAKE) -C $$i"; $(MAKE) -C $$i; \
echo "$(MAKE) -C $$i clean"; $(MAKE) -C $$i clean; \
fi \
done
+ $(RM) reference.txt
+ $(RM) reference.html
+ $(RM) reference.fo
+ $(RM) reference.pdf
$(DOCBOOK5_RNG):
$(MAKE) -C $(dir $@) $(notdir $@)