Sun Oct 28 05:35:52 PDT 2007 Ian Lynagh <igloo@earth.li>
munge_paths = map munge_path
munge_path p
- | Just p' <- maybePrefixMatch "$topdir" p = top_dir ++ p'
+ | Just p' <- maybePrefixMatch "$topdir" p = top_dir ++ p'
+ | Just p' <- maybePrefixMatch "$httptopdir" p = toHttpPath top_dir ++ p'
| otherwise = p
+ toHttpPath p = "file:///" ++ p
+
-- -----------------------------------------------------------------------------
-- Modify our copy of the package database based on a package flag
ilibexecdir = $$topdir
idatadir = $$topdir
idocdir = $$topdir/doc/libraries/$$pkgid
-ihtmldir = $$topdir/doc/libraries/$$pkgid
+ihtmldir = $$httptopdir/doc/libraries/$$pkgid
html_installed_root = $(prefix)/doc/libraries
else
# On non-Windows we can just give absolute paths all the time, and