1*b50261e2SCy Schubert# Doxygen documentation will not be generated with default configuration, 2*b50261e2SCy Schubert# unless '--enable-doxygen-doc' is configured. 3*b50261e2SCy Schubert# The following targets are all about doxygen: 4*b50261e2SCy Schubert# make # 'make doxygen' would be auto executed 5*b50261e2SCy Schubert# make doxygen # generating doxygen documentation 6*b50261e2SCy Schubert# make doxygen-doc # same as 'make doxygen' 7*b50261e2SCy Schubert# make clean # clean docs generated by doxygen 8*b50261e2SCy Schubert# make install # install doxygen documentation 9*b50261e2SCy Schubert# make uninstall # uninstall doxygen documentation 10*b50261e2SCy Schubert 11*b50261e2SCy Schubertif ENABLE_DOXYGEN 12*b50261e2SCy Schubert 13*b50261e2SCy Schubert# Add all needed rules defined in ax_prog_doxygen.m4 14*b50261e2SCy Schubert@DX_RULES@ 15*b50261e2SCy Schubert 16*b50261e2SCy Schubert# Use 'make clean' to clean docs generated by doxygen. 17*b50261e2SCy Schubertclean-local: 18*b50261e2SCy Schubert -rm -rf $(DX_CLEANFILES) 19*b50261e2SCy Schubert 20*b50261e2SCy Schubert# integrate doxygen with automake targets 21*b50261e2SCy Schubertman3_MANS = @DX_DOCDIR@/man/man3/* 22*b50261e2SCy Schubert$(man3_MANS): doxygen-doc 23*b50261e2SCy Schubert 24*b50261e2SCy Schubert# Docs will be installed. It may be one or more docs supported 25*b50261e2SCy Schubert# by doxygen, but does not include 'man'. 26*b50261e2SCy Schubertdocdirs = $(DX_INSTALL_DOCS) 27*b50261e2SCy Schubert 28*b50261e2SCy Schubert# Rules for installing docs generated by doxygen into $(htmldir), 29*b50261e2SCy Schubert# The typical value of $(htmldir) is '/usr/local/share/doc/$(PACKAGE)' 30*b50261e2SCy Schubertinstall-data-local: 31*b50261e2SCy Schubert @if ! test -d "$(DESTDIR)$(htmldir)"; then \ 32*b50261e2SCy Schubert echo "$(mkinstalldirs) '$(DESTDIR)$(htmldir)'"; \ 33*b50261e2SCy Schubert $(mkinstalldirs) '$(DESTDIR)$(htmldir)'; \ 34*b50261e2SCy Schubert fi 35*b50261e2SCy Schubert @for d in $(docdirs); do \ 36*b50261e2SCy Schubert echo "cp -pR $$d '$(DESTDIR)$(htmldir)/'"; \ 37*b50261e2SCy Schubert cp -pR $$d '$(DESTDIR)$(htmldir)/'; \ 38*b50261e2SCy Schubert done 39*b50261e2SCy Schubert 40*b50261e2SCy Schubert# Rules for uninstalling docs generated by doxygen from $(htmldir) 41*b50261e2SCy Schubertuninstall-local: 42*b50261e2SCy Schubert @for d in $(docdirs); do \ 43*b50261e2SCy Schubert d=`basename $$d`; \ 44*b50261e2SCy Schubert echo "test ! -d '$(DESTDIR)$(htmldir)/'$$d || \ 45*b50261e2SCy Schubert { find '$(DESTDIR)$(htmldir)/'$$d -type d ! -perm -200 -exec chmod u+w '{}' ';' && \ 46*b50261e2SCy Schubert rm -rf '$(DESTDIR)$(htmldir)/'$$d; }"; \ 47*b50261e2SCy Schubert test ! -d '$(DESTDIR)$(htmldir)/'$$d || \ 48*b50261e2SCy Schubert { find '$(DESTDIR)$(htmldir)/'$$d -type d ! -perm -200 -exec chmod u+w '{}' ';' && \ 49*b50261e2SCy Schubert rm -rf '$(DESTDIR)$(htmldir)/'$$d; }; \ 50*b50261e2SCy Schubert done 51*b50261e2SCy Schubert rmdir "$(DESTDIR)$(htmldir)/" || true 52*b50261e2SCy Schubert 53*b50261e2SCy Schubertdoxygen: doxygen-doc 54*b50261e2SCy Schubert 55*b50261e2SCy Schubertendif ENABLE_DOXYGEN 56