aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus/Makefile.am
blob: ac0204fdf0d409d9672d357d67935a32a4abe86c (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
64
65
66
67
SUBDIRS = examples .

if HAVE_DOXYGEN_TAGS

tagfiles = \
	libstdc++.tag \
	libwrapiter.tag

libstdc++.tag :
	wget -O $@ http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag

libwrapiter.tag :
	wget -O $@ http://libwrapiter.pioto.org/libwrapiter.tag

endif

doxygen_files = \
	groups.doxygen \
	main_page.doxygen \
	namespaces.doxygen \
	references.doxygen

EXTRA_DIST = doxygen.conf.in $(doxygen_files)
CLEANFILES = *~ cplusplus/* cplusplus paludis.tag

MAINTAINERCLEANFILES = Makefile.in doxygen.conf $(tagfiles)

if HAVE_DOXYGEN

all-local : cplusplus

doxygen : cplusplus

cplusplus : doxygen.conf $(doxygen_files) $(tagfiles)
	doxygen doxygen.conf

install-data-local :
	mkdir -p $(DESTDIR)$(htmldir)/api
	cp -R cplusplus/ $(DESTDIR)$(htmldir)/api/cplusplus

else

doxygen :
	@echo "You don't have doxygen installed!"
	exit 1

endif

built-sources : $(BUILT_SOURCES)
	for s in `echo $(SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s built-sources || exit 1 ; done

distcheck-deps : $(DISTCHECK_DEPS) distcheck-deps-subdirs

distcheck-deps-subdirs :
	for s in `echo $(SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s distcheck-deps || exit 1 ; done

clean-local :
	rm -fr cplusplus/

htmldocs : htmldocs-subdirs

htmldocs-subdirs :
	for s in $(SUBDIRS) . ; do if test x$$s = x. ; then $(MAKE) htmldocs-local || exit 1 ; \
	    else $(MAKE) -C $$s htmldocs || exit 1 ; fi ; done

htmldocs-local : $(paludishtmlapicplusplus_DATA)