summaryrefslogtreecommitdiff
path: root/mk/suffix.mk
diff options
context:
space:
mode:
authorpanne <unknown>2004-10-23 19:15:45 +0000
committerpanne <unknown>2004-10-23 19:15:45 +0000
commita9592dbff339167f42ac8d1d0a6a288172e0d831 (patch)
tree8ed09ff5657c7896113358e82ee2b2c4110ffee7 /mk/suffix.mk
parent557ac3365e9496842edef7fdc4db9bc16fc0e594 (diff)
downloadhaskell-a9592dbff339167f42ac8d1d0a6a288172e0d831.tar.gz
[project @ 2004-10-23 19:15:45 by panne]
Workaround for some hhc problems
Diffstat (limited to 'mk/suffix.mk')
-rw-r--r--mk/suffix.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/suffix.mk b/mk/suffix.mk
index 8792d3cd76..2714c34077 100644
--- a/mk/suffix.mk
+++ b/mk/suffix.mk
@@ -269,8 +269,17 @@ endif
$(DIR_DOCBOOK_XSL)/htmlhelp/htmlhelp.xsl $<
# TODO: Detect hhc via autoconf
+#
+# Two obstables here:
+#
+# * The reason for the strange "if" below is that hhc returns 0 on error and 1
+# on success, the opposite of what shells and make expect.
+#
+# * There seems to be some trouble with DocBook indices, but the *.chm looks OK,
+# anyway, therefore we pacify make by "|| true". Ugly...
+#
%.chm : %-htmlhelp/index.html
- ( cd $(dir $<) && hhc htmlhelp.hhp )
+ ( cd $(dir $<) && if hhc htmlhelp.hhp ; then false ; else true ; fi ) || true
%.fo : %.xml
$(XSLTPROC) --output $@ \