view DOCS/xml/Makefile.inc @ 10914:f6268d5a10f4

I don't think, that anybody likes seeng rm -f /* command :)
author lumag
date Sun, 21 Sep 2003 13:10:58 +0000
parents 3c0e1b182fbc
children 4dc3149f5b74
line wrap: on
line source

#
# Makefile.inc for Makefiles in subdirectories.
#

# Use customized html.xsl file if it exists...
ifeq (html.xsl,$(wildcard html.xsl))
HTML_XSL := html.xsl
XSL_DEPS := $(HTML_XSL) ../html.xsl ../html-common.xsl
else
HTML_XSL := ../html.xsl
XSL_DEPS := $(HTML_XSL) ../html-common.xsl
endif

# Fall back to the default HTML stylesheet if none is specified.
HTML_STYLESHEET ?= ../default.css

# This is the main target...
$(HTMLDIR)/index.html: documentation.xml $(XSL_DEPS)
	@if test "$(HTMLDIR)" = "" ; then echo "Error: HTMLDIR not set!!!"; echo "Typically this means, that you've run make from subdir of DOCS/xml. Don't do this!" ; false; fi
	-rm -f $(HTMLDIR)/*
	../xmllint.sh $<
	cp $(HTML_STYLESHEET) $(HTMLDIR)/
	../xsltproc.sh $(HTMLDIR)/ $(HTML_XSL) $<

../html.xsl:
	cd .. && sh configure