x && y
is not the same as
if x; then y; fi
as the latter doesn't fail when x fails
$(CABAL_HADDOCK_FLAGS); \
fi
ifneq "$(HSCOLOUR)" ""
$(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.%
endif
.PHONY: distclean clean clean.library.%