summaryrefslogtreecommitdiffstats
path: root/DOCS/xml/Makefile
blob: 98b91270da4bc3086faacb93110550ab3bd69105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Makefile for generating the HTML documentation

# List of subdirectories to be processed.
SUBDIRS = en fr

# Generated HTML files go here.
HTML_TOP = ../HTML


.PHONY: all
all: build-html

.PHONY: help
help:
	@echo "Targets:"
	@echo "********"
	@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
build-html: xsltproc.sh
	test -d $(HTML_TOP) || mkdir $(HTML_TOP)
	for d in $(SUBDIRS); do\
		test -f $$d/Makefile &&\
		(test -d $(HTML_TOP)/$$d || mkdir $(HTML_TOP)/$$d) &&\
		if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$d -C $$d; then :; else exit 1; fi;\
	done

.PHONY: clean-html
clean-html:
	-rm -rf $(HTML_TOP)

.PHONY: distclean
distclean: clean-html
	-rm -f html.xsl xsltproc.sh xmllint.sh

xsltproc.sh: configure
	./configure