Skip to content

Commit e4b8ef4

Browse files
add wasirun variable to Makefile
Signed-off-by: Achille Roussel <[email protected]>
1 parent b2c0a30 commit e4b8ef4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
.PHONY: test lint wasirun
22

33
GOPATH ?= $(shell $(GO) env GOPATH)
4+
wasirun = $(GOPATH)/bin/wasirun
45

56
wasip1.test: go.mod $(wildcard wasip1/*.go)
67
GOARCH=wasm GOOS=wasip1 $(GO) test -c ./wasip1
78

89
test: wasirun wasip1.test
9-
wasirun wasip1.test -test.v
10+
$(wasirun) wasip1.test -test.v
1011

11-
wasirun: $(GOPATH)/bin/wasirun
12+
wasirun: $(wasirun)
1213

13-
$(GOPATH)/bin/wasirun:
14+
$(wasirun):
1415
$(GO) install github.com/stealthrocket/wasi-go/cmd/wasirun@latest

0 commit comments

Comments
 (0)