summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
blob: c5a3b4b0d44418714f134c4bfb4e0734bb234939 (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=@PACKAGE@
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
	$(top_srcdir)/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 ; \
			$(top_srcdir)/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