clean up cabal.project.local~*
authorJoey Hess <joeyh@joeyh.name>
Tue, 11 Apr 2023 17:18:31 +0000 (13:18 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 11 Apr 2023 17:18:31 +0000 (13:18 -0400)
Make whenever cabal configure is run with new cabal, and I don't need
100 copies of that to be backed up.

Makefile

index 437afb7ee2a92849bcad6b364af5ad76977ca743..5688430464a1a04c82b04528e2a4c452e731236f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -36,6 +36,7 @@ tmp/configure-stamp: Build/TestConfig.hs Build/Configure.hs
        if [ "$(BUILDER)" = ./Setup ]; then $(GHC) --make Setup; fi
        if [ "$(BUILDER)" != stack ]; then \
                $(BUILDER) configure $(BUILDERCOMMONOPTIONS) --ghc-options="$(shell Build/collect-ghc-options.sh)"; \
+               rm cabal.project.local~* 2>/dev/null || true; \
        else \
                $(BUILDER) setup $(BUILDERCOMMONOPTIONS); \
        fi
@@ -50,6 +51,7 @@ tmp/configure-stamp: Build/TestConfig.hs Build/Configure.hs
 dev:
        $(BUILDER) configure -f"-Production" \
                --enable-executable-dynamic --enable-profiling
+       rm cabal.project.local~* 2>/dev/null || true
        mkdir -p tmp
        touch tmp/configure-stamp
        $(MAKE) git-annex tags
@@ -231,6 +233,7 @@ osxapp:
 distributionupdate:
        git pull
        cabal configure
+       rm cabal.project.local~* 2>/dev/null || true
        ghc -Wall -fno-warn-tabs --make Build/DistributionUpdate -XLambdaCase -XPackageImports
        ./Build/DistributionUpdate