summaryrefslogtreecommitdiff
path: root/docs/reference/Makefile.am
blob: 416df779c5574a78e46d07cf24542222586cfc7d (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
52
53
54
55
56
57
58
59
60
61
62
63
DOXYGEN_CONFIGFILE = Doxyfile
DOXYGEN_CONFIGFILE_SOURCE = Doxyfile.in
WEB_SERVER = cairographics.org
WEB_SERVER_PATH = /srv/cairo.freedesktop.org/www/documentation/cairomm/reference
HTML_TEMPLATE_FILES = cairomm.css cairomm-header.html

EXTRA_DIST = $(DOXYGEN_CONFIGFILE_SOURCE) \
			 introduction.h $(HTML_TEMPLATE_FILES) cairomm_doxygen_tags \
			 html

index_html = html/index.html

$(index_html): $(DOXYGEN_CONFIGFILE) $(wildcard $(top_srcdir)/cairomm/*.h) $(HTML_TEMPLATE_FILES)
	-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

publish:	html
	rsync -avz --rsh ssh --cvs-exclude html/ $(WEB_SERVER):$(WEB_SERVER_PATH)

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

doc-clean:
	-rm -rf html
	-rm -f cairomm_doxygen_tags
	-rm -f doxygen-output.txt
	-rm -f doxygen-warnings.txt
	-rm -f undocumented.txt

install-data-local: install-reference

uninstall-local: uninstall-reference

all-local: $(index_html)

maintainer-clean-local: doc-clean

DISTCLEANFILES = $(DOXYGEN_CONFIGFILE)

.PHONY: doc-clean install-reference uninstall-reference