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