Skip to content

Commit

Permalink
fix: fix up Makefiles (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhess authored Nov 30, 2023
2 parents 4d3f7e2 + ada0fa5 commit ad649fb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions primer-api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Most commands assume you're running this from the top-level `nix
# develop` shell.

wasm32-primer-api-test := $(shell wasm32-wasi-cabal list-bin -v0 test:primer-api-test)
wasm32-primer-api-test-opt := $(shell wasm32-wasi-cabal list-bin -O2 -v0 test:primer-api-test)
wasm32-primer-api-test = $(shell wasm32-wasi-cabal list-bin -v0 test:primer-api-test)
wasm32-primer-api-test-opt = $(shell wasm32-wasi-cabal list-bin -O2 -v0 test:primer-api-test)

build:
cabal build
Expand All @@ -25,6 +25,9 @@ check: test

wasm32-check: wasm32-test

test:
cabal test

wasm32-test:
tasty-discover test/Test.hs _ test/TestsWasm32.hs --tree-display
wasm32-wasi-cabal build test:primer-api-test
Expand Down
7 changes: 5 additions & 2 deletions primer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Most commands assume you're running this from the top-level `nix
# develop` shell.

wasm32-primer-test := $(shell wasm32-wasi-cabal list-bin -v0 test:primer-test)
wasm32-primer-test-opt := $(shell wasm32-wasi-cabal list-bin -O2 -v0 test:primer-test)
wasm32-primer-test = $(shell wasm32-wasi-cabal list-bin -v0 test:primer-test)
wasm32-primer-test-opt = $(shell wasm32-wasi-cabal list-bin -O2 -v0 test:primer-test)

build:
cabal build
Expand All @@ -25,6 +25,9 @@ check: test

wasm32-check: wasm32-test

test:
cabal test

wasm32-test:
tasty-discover test/Test.hs _ test/TestsWasm32.hs --tree-display
wasm32-wasi-cabal build test:primer-test
Expand Down

0 comments on commit ad649fb

Please sign in to comment.