Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Revert "WIP"

This reverts commit 6ac21af.
  • Loading branch information
philderbeast committed Jun 4, 2024
1 parent fdb7796 commit 39a9efa
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
delete-golden:
find test-suite-golden -name "*.golden" -type f -delete

delete-generated:
find test-suite-golden -type f | grep -E ".*\.(cabal|json|yaml)" | xargs rm

# Hpack
test-suite-golden/test-files/real-world/hpack/hpack.yaml.cabal:
dhall-hpack-cabal --package-dhall=$(@:.yaml.cabal=.dhall)

test-suite-golden/test-files/real-world/hpack/hpack.json:
dhall-hpack-json --package-dhall=$(@:.json=.dhall) > $@

test-suite-golden/test-files/real-world/hpack/hpack.yaml:
dhall-hpack-yaml --package-dhall=$(@:.yaml=.dhall) > $@

# Stack
test-suite-golden/test-files/real-world/stack/package.yaml: $(@:.yaml=.dhall)
dhall-hpack-yaml --package-dhall=$< > $@

test-suite-golden/test-files/real-world/stack/stack.cabal:
dhall-hpack-cabal --package-dhall=$(@:.yaml.cabal=.dhall)

test-suite-golden/test-files/real-world/stack/stack.yaml:
dhall-hpack-yaml --package-dhall=$(@:.yaml=.dhall) > $@

test-suite-golden/test-files/real-world/stack/stack.yaml.cabal: \
test-suite-golden/test-files/real-world/stack/stack.yaml
hpack --package-yaml=$<

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 39a9efa

Please sign in to comment.