Honor user's $(htmldir) and do not override GNU defaults for $(docdir)

* HTML files should be installed to $(htmldir), and $(docdir) should
  not be changed, as this is a user flag in the GNU conventions.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
This commit is contained in:
David Seifert 2017-01-13 18:42:30 +01:00 committed by Erik de Castro Lopo
parent ce6ab95db3
commit 052cd4b6e3
3 changed files with 8 additions and 12 deletions

View File

@ -31,8 +31,6 @@ FLAC.tag:
mkdir -p html/api mkdir -p html/api
endif endif
docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
doc_DATA = \ doc_DATA = \
FLAC.tag FLAC.tag

View File

@ -18,9 +18,7 @@
SUBDIRS = images SUBDIRS = images
docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/html html_DATA = \
doc_DATA = \
changelog.html \ changelog.html \
developers.html \ developers.html \
documentation.html \ documentation.html \
@ -40,16 +38,16 @@ doc_DATA = \
license.html \ license.html \
ogg_mapping.html ogg_mapping.html
EXTRA_DIST = $(doc_DATA) api EXTRA_DIST = $(html_DATA) api
if FLaC__HAS_DOXYGEN if FLaC__HAS_DOXYGEN
# The install targets don't copy whole directories so we have to # The install targets don't copy whole directories so we have to
# handle 'api/' specially: # handle 'api/' specially:
install-data-local: install-data-local:
$(mkinstalldirs) $(DESTDIR)$(docdir)/api $(mkinstalldirs) $(DESTDIR)$(htmldir)/api
(cd $(builddir)/api && $(INSTALL_DATA) * $(DESTDIR)$(docdir)/api) (cd $(builddir)/api && $(INSTALL_DATA) * $(DESTDIR)$(htmldir)/api)
uninstall-local: uninstall-local:
rm -rf $(DESTDIR)$(docdir)/api rm -rf $(DESTDIR)$(htmldir)/api
distclean-local: distclean-local:
-rm -rf api -rm -rf api
endif endif

View File

@ -16,10 +16,10 @@
# restrictive of those mentioned above. See the file COPYING.Xiph in this # restrictive of those mentioned above. See the file COPYING.Xiph in this
# distribution. # distribution.
docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/html/images logosdir = $(htmldir)/images
doc_DATA = \ logos_DATA = \
logo.svg \ logo.svg \
logo130.gif logo130.gif
EXTRA_DIST = $(doc_DATA) EXTRA_DIST = $(logos_DATA)