In cabal.mk, clean is no longer identical to distclean
authorIan Lynagh <igloo@earth.li>
Tue, 12 Aug 2008 23:24:46 +0000 (23:24 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 12 Aug 2008 23:24:46 +0000 (23:24 +0000)
distclean will now also remove files listed in EXTRA_DISTCLEAN

mk/cabal.mk

index 1ae6cba..fbe8953 100644 (file)
@@ -52,12 +52,15 @@ install:
                           --distpref dist-install                        \
                           $(INSTALL_FLAGS)
 
-clean: distclean
-
-distclean:
+clean:
        -$(CABAL) clean --distpref dist-inplace
        -$(CABAL) clean --distpref dist-install
 ifneq "$(EXTRA_CLEAN)" ""
        $(RM) -f $(EXTRA_CLEAN)
 endif
 
+distclean: clean
+ifneq "$(EXTRA_DISTCLEAN)" ""
+       $(RM) -f $(EXTRA_DISTCLEAN)
+endif
+