Skip to content

Commit

Permalink
.PHONY delete-*, xargs --no-run-if-empty
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Jun 4, 2024
1 parent 0d2f240 commit 524c77b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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)

0 comments on commit 524c77b

Please sign in to comment.