summaryrefslogtreecommitdiff
path: root/docs/reference/Makefile.am
blob: cddf1d0e1d3663f9a8787ad8ed0be68c69310d2f (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
41
42
43
44
45
46
47
48
49
50
51
DOXYGEN_CONFIGFILE = Doxyfile
DOXYGEN_CONFIGFILE_SOURCE = Doxyfile.in

EXTRA_DIST = $(DOXYGEN_CONFIGFILE_SOURCE) introduction.h html

index_html = html/index.html

$(index_html): $(DOXYGEN_CONFIGFILE_SOURCE)
	-rm -rf html
	doxygen $(doxygen_configfile) \
	2> doxygen-warnings.txt | tee doxygen-output.txt && cat doxygen-warnings.txt

html: $(index_html)

cairomm-reference-html.tar.gz: $(index_html)
	tar cf - html | gzip -c --best >$@

referencedir = $(datadir)/doc/libcairomm-1.0/reference/html

install-reference: $(index_html)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(referencedir)
	@dir='$(<D)'; for p in $$dir/*.html $$dir/*.css $$dir/*.png $$dir/*.jpg $$dir/*.map $$dir/*.md5 $$dir/*.dot ; do \
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(referencedir)/$$f"; \
	  $(INSTALL_DATA) $$p $(DESTDIR)$(referencedir)/$$f; \
	done

uninstall-reference: $(index_html)
	@$(NORMAL_UNINSTALL)
	@dir='$(<D)'; for p in $$dir/*.html $$dir/*.css $$dir/*.png $$dir/*.jpg $$dir/*.map $$dir/*.md5 $$dir/*.dot ; do \
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
	  echo " rm -f $(DESTDIR)$(referencedir)/$$f"; \
	  rm -f $(DESTDIR)$(referencedir)/$$f; \
	done

install-data-local: install-reference

uninstall-local: uninstall-reference

all-local: $(index_html)

clean-local:
	-rm -rf html

CLEANFILES = cairomm_doxygen_tags \
						 doxygen-output.txt \
						 doxygen-warnings.txt \
						 undocumented.txt

DISTCLEANFILES = $(DOXYGEN_CONFIGFILE)