aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am38
1 files changed, 35 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 19722eb..e98fcbf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -38,6 +38,11 @@
38SUBDIRS = $(subdirs) 38SUBDIRS = $(subdirs)
39DIST_SUBDIRS = $(subdirs) 39DIST_SUBDIRS = $(subdirs)
40 40
41
42# directory locations
43doxygendir = $(docdir)/doxygen
44
45
41# GNU make options 46# GNU make options
42V = 0 47V = 0
43 48
@@ -72,6 +77,8 @@ LDADD =
72bin_PROGRAMS = 77bin_PROGRAMS =
73check_PROGRAMS = 78check_PROGRAMS =
74doc_DATA = doc/oid.txt 79doc_DATA = doc/oid.txt
80doxygen_DATA =
81noinst_DATA =
75EXTRA_PROGRAMS = 82EXTRA_PROGRAMS =
76include_HEADERS = 83include_HEADERS =
77info_TEXINFOS = 84info_TEXINFOS =
@@ -119,6 +126,7 @@ EXTRA_DIST = $(noinst_HEADERS) \
119 lib/libldaputils/libldaputils.sym \ 126 lib/libldaputils/libldaputils.sym \
120 lib/libldapschema/lspecdata.c \ 127 lib/libldapschema/lspecdata.c \
121 lib/libldapschema/lspecdata.h \ 128 lib/libldapschema/lspecdata.h \
129 doc/Doxyfile.in \
122 doc/oidspecs/template.oidspec \ 130 doc/oidspecs/template.oidspec \
123 doc/oid.txt \ 131 doc/oid.txt \
124 $(OIDSPEC_FILES) 132 $(OIDSPEC_FILES)
@@ -126,6 +134,9 @@ CLEANFILES = \
126 $(builddir)/a.out $(srcdir)/a.out \ 134 $(builddir)/a.out $(srcdir)/a.out \
127 $(builddir)/*/a.out $(srcdir)/*/a.out \ 135 $(builddir)/*/a.out $(srcdir)/*/a.out \
128 config.h.in~ $(srcdir)/config.h.in~ \ 136 config.h.in~ $(srcdir)/config.h.in~ \
137 doc/Doxyfile \
138 doc/Doxyfile.make \
139 doc/doxygen \
129 $(man_MANS) \ 140 $(man_MANS) \
130 $(pkgdata_DATA) \ 141 $(pkgdata_DATA) \
131 $(bin_SCRIPTS) \ 142 $(bin_SCRIPTS) \
@@ -133,7 +144,14 @@ CLEANFILES = \
133 @PACKAGE_TARNAME@-*.tar.* \ 144 @PACKAGE_TARNAME@-*.tar.* \
134 @PACKAGE_TARNAME@-*.txz \ 145 @PACKAGE_TARNAME@-*.txz \
135 @PACKAGE_TARNAME@-*.zip 146 @PACKAGE_TARNAME@-*.zip
136DISTCHECK_CONFIGURE_FLAGS = --enable-strictwarnings 147DISTCHECK_CONFIGURE_FLAGS = --enable-strictwarnings \
148 --enable-doxygen-docs
149
150
151# macros for doc/doxygen
152if LDAPUTILS_DOXYGEN
153 noinst_DATA += doc/doxygen/html/index.html
154endif
137 155
138 156
139# macros for lib/libldapschema.a 157# macros for lib/libldapschema.a
@@ -347,10 +365,22 @@ MY_V_OIDSPEC = $(my__v_OIDSPEC_$(V))
347my__v_OIDSPEC_ = 365my__v_OIDSPEC_ =
348my__v_OIDSPEC_0 = @echo " OIDSPEC " $@; 366my__v_OIDSPEC_0 = @echo " OIDSPEC " $@;
349my__v_OIDSPEC_1 = 367my__v_OIDSPEC_1 =
350 368MY_V_DOXYGEN = $(my__v_DOXYGEN_$(V))
369my__v_DOXYGEN_ =
370my__v_DOXYGEN_0 = @echo " DOXYGEN " $@;
371my__v_DOXYGEN_1 =
351 372
352# custom targets 373# custom targets
353.PHONY: 374.PHONY: doxygen
375
376doxygen: doc/doxygen/html/index.html
377
378doc/doxygen/html/index.html: doc/Doxyfile $(noinst_HEADERS) $(include_HEADERS)
379 $(MY_V_DOXYGEN) rm -fR doc/doxygen; mkdir -p doc/doxygen; \
380 cd $(top_srcdir) && $(DOXYGEN) $(abs_top_builddir)/doc/Doxyfile > /dev/null
381
382doc/Doxyfile: Makefile doc/Doxyfile.in
383 @$(do_subst_dt)
354 384
355doc/ldap2csv.1: Makefile $(srcdir)/doc/ldap2csv.1.in 385doc/ldap2csv.1: Makefile $(srcdir)/doc/ldap2csv.1.in
356 @$(do_subst_dt) 386 @$(do_subst_dt)
@@ -392,6 +422,8 @@ install-data-hook:
392uninstall-local: 422uninstall-local:
393 423
394clean-local: 424clean-local:
425 rm -fR $(builddir)/doc/doxygen
426 rm -fR $(srcdir)/doc/doxygen
395 427
396distclean-local: 428distclean-local:
397 rm -fR $(srcdir)/autom4te.cache 429 rm -fR $(srcdir)/autom4te.cache