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