Makefile.am 803 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DOC_MODULE=fontconfig
DOC2HTML=docbook2html -u
DOC2TXT=docbook2txt

TXT=fontconfig-user.txt fontconfig-devel.txt
HTML=fontconfig-user.html fontconfig-devel.html
SGML=fontconfig-user.sgml fontconfig-devel.sgml

DOCDIR=@DOCDIR@
TARGET_DIR=$(DOCDIR)

SUFFIXES=.sgml .txt .html

.sgml.html:
	$(RM) $@
	$(DOC2HTML) $*.sgml
	$(RM) index.html

.sgml.txt:
	$(RM) $@
	$(DOC2TXT) $*.sgml

EXTRA_DIST = $(TXT) $(HTML) $(SGML)
	
Keith Packard's avatar
Keith Packard committed
25
26
27
28
29
30
31
if ENABLE_DOCS
DOCS=$(TXT) $(HTML)
all-local: all-docs
clean-local: clean-docs
install-data-local: install-docs
else
all-local:
32
33
clean-local:
install-data-local:
Keith Packard's avatar
Keith Packard committed
34
35
36
37
38
39
40
41
endif

all-docs: $(DOCS)

clean-docs:
	rm -f $(DOCS)

install-docs:
42
	$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
Keith Packard's avatar
Keith Packard committed
43
	for i in $(DOCS); do \
44
45
46
	  echo '-- Installing'$$i ; \
	  $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR)/$$i; \
	done