prefix = /usr
+VERSION=$(shell . ../IDMETA; echo $$VERSION)
+
XSLTPROC_COMPILE = xsltproc --xinclude -path "."
HTML_COMPILE = $(XSLTPROC_COMPILE) common/id.htmlhelp.xsl
MAN_COMPILE = $(XSLTPROC_COMPILE) common/id.man.xsl
all: index.html $(MANFILES)
-index.html: $(XMLFILES)
+index.html: $(XMLFILES) local.ent
$(HTML_COMPILE) book.xml
-manref.xml: $(REFFILES)
+manref.xml: $(REFFILES) local.ent
rm -f manref.xml
for i in $(REFFILES); do \
xsltproc stripref.xsl $$i | sed 1d >>manref.xml; \
distclean: clean
+local.ent: local.ent.in
+ sed "s/@VERSION@/$(VERSION)/" <local.ent.in >local.ent
+
check: all
install: