$NetBSD: patch-aa,v 1.1.1.1 2009/10/26 08:35:18 obache Exp $ --- doc/reference/Makefile.in.orig 2008-07-18 13:16:50.000000000 +0000 +++ doc/reference/Makefile.in @@ -542,13 +542,14 @@ install-data-local: if test "$$installfiles" = '$(srcdir)/html/*'; \ then echo '-- Nothing to install' ; \ else \ - $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR); \ + installdir=${DESTDIR}${TARGET_DIR}-$(DOC_MODULE_VERSION); \ + $(mkinstalldirs) $${installdir}; \ for i in $$installfiles; do \ echo '-- Installing '$$i ; \ - $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \ + $(INSTALL_DATA) $$i $${installdir}; \ done; \ echo '-- Installing $(srcdir)/html/index.sgml' ; \ - $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) || :; \ + $(INSTALL_DATA) $(srcdir)/html/index.sgml $${installdir} || :; \ which gtkdoc-rebase >/dev/null && \ gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) ; \ fi