summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
blob: 31804cb7f2a9173edeb7fa0639f57b747adac8db (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
DOC_MODULE="liberasurecode"
HTML_DIR=$(datadir)/$(DOC_MODULE)/html
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)

all-local:	html/index.html

if ENABLE_DOXYGEN
html/index.html: doxygen.cfg
	doxygen doxygen.cfg
else
html/index.html:
endif

clean-local:
	rm -f *~ *.bak
	rm -rf html

install-data-local: html
	../install-sh -d $(DESTDIR)$(TARGET_DIR)
	(installfiles=`echo html/*`; \
	if test "$$installfiles" = 'html/*'; \
	then echo '-- Nothing to install' ; \
	else \
		for i in $$installfiles; do \
			echo '-- Installing '$$i ; \
			../install-sh $$i $(DESTDIR)$(TARGET_DIR); \
		done; \
	fi)

dist-hook:
	mkdir $(distdir)/html
	mkdir $(distdir)/man
	-cp html/* $(distdir)/html
	-cp man/* $(distdir)/man

.PHONY : html latex man