From: sven.panne@aedion.de Date: Sun, 23 Sep 2007 12:06:36 +0000 (+0000) Subject: Fix bug #1725 (Haddock links between packages) X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=02924d52507ab58a05b3cb412a505e4cec86c413 Fix bug #1725 (Haddock links between packages) Resolving this bug is a bit tricky, it boils down to the question: Should the Haddock links between packages include the package version or not? Pro: We can differentiate between various versions of the same package, installed all at once. (How often does this really happen in practice?) Cons: When package A refers to a package B, and B is later upgraded, links in A's documentation will break. Furthermore, if an *additional* version of B is installed, which version should A refer to? Because IMHO it is not clear what to do when version numbers are included, let's leave them out. If somebody has a better idea, feel free to submit a better patch. MERGE TO STABLE --- diff --git a/libraries/Makefile b/libraries/Makefile index 0fbd473..d9cc69a 100644 --- a/libraries/Makefile +++ b/libraries/Makefile @@ -102,8 +102,8 @@ ibindir = $$topdir ilibdir = $$topdir ilibexecdir = $$topdir idatadir = $$topdir -idocdir = $$topdir/doc/libraries/$$pkgid -ihtmldir = $$topdir/doc/libraries/$$pkgid +idocdir = $$topdir/doc/libraries/$$pkg +ihtmldir = $$topdir/doc/libraries/$$pkg html_installed_root = $(prefix)/doc/libraries else # On non-Windows we can just give absolute paths all the time, and @@ -113,8 +113,8 @@ ibindir = $(bindir) ilibdir = $(libdir) ilibexecdir = $(libexecdir) idatadir = $(datadir) -idocdir = $(docdir)/libraries/$$pkgid -ihtmldir = $(htmldir)/libraries/$$pkgid +idocdir = $(docdir)/libraries/$$pkg +ihtmldir = $(htmldir)/libraries/$$pkg html_installed_root = $(ihtmldir) endif @@ -326,9 +326,9 @@ ifeq "$(HADDOCK_DOCS)" "YES" $(INSTALL_DATA) index.html doc-index*.html $(DESTDIR)$(html_installed_root) $(INSTALL_SCRIPT) gen_contents_index $(DESTDIR)$(html_installed_root) # Hacks: - $(INSTALL_DATA) $(DESTDIR)$(html_installed_root)/base-*/*.css $(DESTDIR)$(html_installed_root) - $(INSTALL_DATA) $(DESTDIR)$(html_installed_root)/base-*/*.js $(DESTDIR)$(html_installed_root) - $(INSTALL_DATA) $(DESTDIR)$(html_installed_root)/base-*/*.gif $(DESTDIR)$(html_installed_root) + $(INSTALL_DATA) $(DESTDIR)$(html_installed_root)/base*/*.css $(DESTDIR)$(html_installed_root) + $(INSTALL_DATA) $(DESTDIR)$(html_installed_root)/base*/*.js $(DESTDIR)$(html_installed_root) + $(INSTALL_DATA) $(DESTDIR)$(html_installed_root)/base*/*.gif $(DESTDIR)$(html_installed_root) endif # Cabal doesn't let us ask to install docs only, so do nothing here