forked from sdr/libosmo-dsp
build: simplify Doxygen output installation
Instead of using a custom pkgdocdir value use the default, and overridable, htmldir. Also make sure that the directory is properly removed at uninstall, to unbreak `make distcheck`. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
d076a66599
commit
c8b45495ec
11
Makefile.am
11
Makefile.am
|
@ -17,12 +17,9 @@ EXTRA_DIST = git-version-gen
|
|||
|
||||
if HAVE_DOXYGEN
|
||||
|
||||
pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION)
|
||||
doc_htmldir=$(pkgdocdir)/html
|
||||
html_DATA = $(top_builddir)/doc/html.tar
|
||||
|
||||
doc_html_DATA = $(top_builddir)/doc/html.tar
|
||||
|
||||
$(doc_html_DATA): $(top_builddir)/doc/html/index.html
|
||||
$(html_DATA): $(top_builddir)/doc/html/index.html
|
||||
cd $(top_builddir)/doc && tar cf html.tar html
|
||||
|
||||
$(top_builddir)/doc/html/index.html: $(SOURCES) Doxyfile
|
||||
|
@ -31,10 +28,10 @@ $(top_builddir)/doc/html/index.html: $(SOURCES) Doxyfile
|
|||
$(DOXYGEN) Doxyfile
|
||||
|
||||
install-data-hook:
|
||||
cd $(DESTDIR)$(doc_htmldir) && tar xf html.tar --strip-components 1 && rm -f html.tar
|
||||
cd $(DESTDIR)$(htmldir) && tar xf html.tar --strip-components 1 && rm -f html.tar
|
||||
|
||||
uninstall-hook:
|
||||
cd $(DESTDIR) && rm -rf $(doc_htmldir)
|
||||
rm -rf $(DESTDIR)$(htmldir)
|
||||
|
||||
DX_CLEAN = doc/{html,latex}/* doc/html.tar
|
||||
|
||||
|
|
Loading…
Reference in New Issue