Subversion Repositories Scribus

Rev

Rev 3728 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
598 cbradney 1
## generate API documentation with doxygen
2
apidox-am-yes:
3875 mrdocs 3
	@if test \! -d "$(top_srcdir)/doc/common/" && test -z "$$DOXDATA" ; then \
4
		export DOXDATA=$(kde_libs_htmldir)/en/common ; \
5
	fi ; \
6
	abs_top_srcdir=`cd $(top_srcdir) && pwd` ;\
7
	test -d $(top_builddir)/apidocs || \
8
		( cd $(top_builddir) && sh $$abs_top_srcdir/admin/doxygen.sh \
9
		--no-modulename --installdir=$(kde_libs_htmldir)/en \
10
		--no-recurse $(abs_top_srcdir) . ) ; \
11
	cd $(top_builddir) && sh $$abs_top_srcdir/admin/doxygen.sh \
12
		--recurse --no-modulename --installdir=$(kde_libs_htmldir)/en \
13
		$$abs_top_srcdir $(subdir)
14
 
15
apidox-am-toplevel-yes:
16
	@if test \! -d "$(top_srcdir)/doc/common/" && test -z "$$ADMIN" ; then \
17
		export DOXDATA=$(kde_libs_htmldir)/en/common ; \
18
	fi ; \
19
	abs_top_srcdir=`cd $(top_srcdir) && pwd` ;\
20
	cd $(top_builddir) && sh $$abs_top_srcdir/admin/doxygen.sh \
21
		--no-modulename --installdir=$(kde_libs_htmldir)/en \
22
		$$abs_top_srcdir
23
 
24
## Don't generate API documentation without doxygen
25
apidox-am-no:
26
 
27
apidox-am-toplevel-no:
28
 
29
 
30
apidox:
598 cbradney 31
	@if test "$(subdir)" != "."; then \
3875 mrdocs 32
		$(MAKE) apidox-am-@KDE_HAS_DOXYGEN@ ;\
598 cbradney 33
			else \
3875 mrdocs 34
		$(MAKE) apidox-am-toplevel-@KDE_HAS_DOXYGEN@ ;\
598 cbradney 35
	fi
36
 
37
 
3875 mrdocs 38
 
598 cbradney 39
install-data-local: install-apidox
40
 
41
## install API documentation
42
install-apidox:
43
	@if test "$(subdir)" != "."; then \
44
		$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir)/html ; \
45
		if test -f $(top_builddir)/apidocs/$(subdir)/$(subdir).tag; then \
46
		echo $(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/$(subdir).tag $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
47
		$(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/$(subdir).tag $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
48
		fi; \
49
		if test -d $(top_builddir)/apidocs/$(subdir)/html; then \
50
			list=`ls $(top_builddir)/apidocs/$(subdir)/html`; \
51
			echo "installing $(top_builddir)/apidocs/$(subdir)/html" ;\
52
			for file in $$list; do \
53
				$(INSTALL_DATA) $(top_builddir)/apidocs/$(subdir)/html/$$file $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir)/html; \
54
		done; \
55
		fi; \
56
	else\
57
		if test -d $(top_builddir)/apidocs; then \
58
		$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs ;\
59
		list=`cd $(top_builddir)/apidocs && ls -1`; \
60
		echo "installing $(top_builddir)/apidocs/$$file" ;\
3875 mrdocs 61
		echo "target directory $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs" ; \
598 cbradney 62
		for file in $$list; do \
63
			if test -f $(top_builddir)/apidocs/$$file; then \
64
				$(INSTALL_DATA) $(top_builddir)/apidocs/$$file $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \
65
			fi; \
66
		done ; fi; \
67
	fi
68
 
69
uninstall-local: uninstall-apidox
70
 
71
## uninstall API documentation
72
uninstall-apidox:
73
	@if test "$(subdir)" != "."; then \
74
		if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); then \
75
			rm -rfv $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs/$(subdir); \
76
		fi\
77
	else\
78
		if test -d $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; then \
79
			rm -rfv $(DESTDIR)$(kde_htmldir)/en/$(PACKAGE)-apidocs; \
80
		fi\
81
	fi
82
 
3875 mrdocs 83
install-apidox-recurse: install-apidox
598 cbradney 84
	@set fnord $(MAKEFLAGS); amf=$$2; if test -n '$(SUBDIRS)'; then \
85
	    list='$(SUBDIRS)'; \
86
	    for subdir in $$list; do \
3875 mrdocs 87
		if grep '^include .*Doxyfile.am' $(srcdir)/$$subdir/Makefile.am > /dev/null ; then \
88
		echo "Installing apidox from $$subdir"; \
598 cbradney 89
		if test "$$subdir" != "."; then \
3875 mrdocs 90
			(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) GENERATE_FLAG=no install-apidox-recurse) || exit 1; \
598 cbradney 91
		fi ; fi ;\
92
	    done; \
93
	fi
94
 
95
 
3875 mrdocs 96
 
598 cbradney 97
.PHONY: apidox-am-yes apidox-am-no install-data-local install-apidox install-apidox uninstall-local uninstall-apidox uninstall-apidox apidox apidox-am-toplevel-no apidox-am-toplevel-yes
98
 
99
 
100
# Local Variables:
101
# mode: makefile
102
# End: