2003-03-23 23:26:55 +00:00
|
|
|
# Makefile for generating the HTML documentation
|
|
|
|
|
|
|
|
# List of subdirectories to be processed.
|
2003-05-16 13:23:03 +00:00
|
|
|
SUBDIRS = en fr
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2003-06-18 17:37:36 +00:00
|
|
|
# Generated HTML files go here.
|
2003-03-30 18:48:23 +00:00
|
|
|
HTML_TOP = ../HTML
|
|
|
|
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2003-06-18 17:37:36 +00:00
|
|
|
.PHONY: all
|
|
|
|
all: build-html
|
2003-03-23 23:26:55 +00:00
|
|
|
|
2003-06-18 17:37:36 +00:00
|
|
|
.PHONY: help
|
|
|
|
help:
|
|
|
|
@echo "Targets:"
|
|
|
|
@echo "********"
|
2003-03-23 23:26:55 +00:00
|
|
|
@echo "all : Build everything (same as build-html for now)."
|
|
|
|
@echo "build-html: Build HTML documentation."
|
|
|
|
@echo "clean-html: Purge the 'HTML' directory."
|
|
|
|
@echo "distclean : Remove ALL generated files."
|
|
|
|
|
|
|
|
.PHONY: build-html
|
2003-06-18 17:37:36 +00:00
|
|
|
build-html: xsltproc.sh
|
2003-03-30 18:48:23 +00:00
|
|
|
test -d $(HTML_TOP) || mkdir $(HTML_TOP)
|
2003-03-23 23:26:55 +00:00
|
|
|
for d in $(SUBDIRS); do\
|
|
|
|
test -f $$d/Makefile &&\
|
2003-03-30 18:48:23 +00:00
|
|
|
(test -d $(HTML_TOP)/$$d || mkdir $(HTML_TOP)/$$d) &&\
|
|
|
|
if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$d -C $$d; then :; else exit 1; fi;\
|
2003-03-23 23:26:55 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
.PHONY: clean-html
|
|
|
|
clean-html:
|
2003-03-30 18:48:23 +00:00
|
|
|
-rm -rf $(HTML_TOP)
|
2003-03-23 23:26:55 +00:00
|
|
|
|
|
|
|
.PHONY: distclean
|
|
|
|
distclean: clean-html
|
2003-06-18 17:37:36 +00:00
|
|
|
-rm -f html.xsl xsltproc.sh xmllint.sh
|
|
|
|
|
|
|
|
xsltproc.sh: configure
|
|
|
|
./configure
|