diff --git a/Makefile b/Makefile index 128b061..2717e94 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ +.PHONY: delete-golden delete-golden: - find test-suite-golden -name "*.golden" -type f -delete + find test-suite-golden -type f | grep -E ".*\.(golden)" | xargs --no-run-if-empty rm +.PHONY: delete-generated delete-generated: - find test-suite-golden -type f | grep -E ".*\.(cabal|json|yaml)" | xargs rm + find test-suite-golden -type f | grep -E ".*\.(cabal|json|yaml)" | xargs --no-run-if-empty rm # Hpack test-suite-golden/test-files/real-world/hpack/hpack.yaml.cabal: @@ -30,6 +32,3 @@ test-suite-golden/test-files/real-world/stack/stack.yaml.cabal: \ test-suite-golden/test-files/real-world/stack/stack.json: dhall-hpack-json --package-dhall=$(@:.json=.dhall) - -test-suite-golden/test-files/real-world/stack/stack.yaml: - dhall-hpack-yaml --package-dhall=$(@:.yaml=.dhall)