Fix the libraries Makefile
authorIan Lynagh <igloo@earth.li>
Wed, 5 Dec 2007 12:50:15 +0000 (12:50 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 5 Dec 2007 12:50:15 +0000 (12:50 +0000)
    x && y
is not the same as
    if x; then y; fi
as the latter doesn't fail when x fails

libraries/Makefile

index 38bf497..bbcfdd2 100644 (file)
@@ -300,7 +300,7 @@ doc.library.%: stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).% \
                                       $(CABAL_HADDOCK_FLAGS); \
        fi
 ifneq "$(HSCOLOUR)" ""
-       ifBuildable/ifBuildable $* && cp hscolour.css $*/dist/doc/html/$*/src/
+       if ifBuildable/ifBuildable $*; then cp hscolour.css $*/dist/doc/html/$*/src/; fi
 endif
 
 .PHONY: distclean clean clean.library.%