Commit b402f75dc29783eaafa5b10006c64e701cc458d5

Authored by knodlseder
1 parent 27487283

add doxygen-install rule and rename doxygen-doc into doxygen

Showing 1 changed file with 20 additions and 3 deletions
Makefile.am
... ... @@ -34,8 +34,6 @@ doc_DATA = \
34 34 #EXTRA_DIST = autogen.sh \
35 35 # gammalib.pc.in
36 36  
37   -
38   -
39 37 # Automatically reconfigure libtool
40 38 LIBTOOL_DEPS = @LIBTOOL_DEPS@
41 39 libtool: $(LIBTOOL_DEPS)
... ... @@ -128,7 +126,26 @@ endif DX_COND_latex
128 126  
129 127 doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
130 128  
131   -doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
  129 +# Make Doxygen files
  130 +doxygen: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
  131 +
  132 +# Install Doxygen files
  133 +DOCDIRS = doxygen/html doxygen/man/man3
  134 +doxygen-install:
  135 + $(mkinstalldirs) $(DESTDIR)$(docdir)
  136 + @for dir in $(DOCDIRS) ; do \
  137 + $(mkinstalldirs) $(DESTDIR)$(docdir)/$$dir && \
  138 + for file in $(srcdir)/doc/$$dir/*.* ; do \
  139 + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/$$dir" ; \
  140 + $(INSTALL_DATA) "$$file" $(DESTDIR)$(docdir)/$$dir ; \
  141 + done ; \
  142 + done
  143 +
  144 +# Uninstall Doxygen files
  145 +doxygen-uninstall:
  146 + for dir in $(DOCDIRS) ; do \
  147 + rm -f -r $(DESTDIR)$(docdir)/$$dir ; \
  148 + done
132 149  
133 150 @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
134 151 rm -rf @DX_DOCDIR@
... ...