forked from gnolang/gno
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 666 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.PHONY: help
help:
@echo "Available make commands:"
@cat Makefile | grep '^[a-z][^:]*:' | cut -d: -f1 | sort | sed 's/^/ /'
.PHONY: precompile
precompile:
go run ../gnovm/cmd/gno precompile --verbose .
.PHONY: build
build: precompile
go run ../gnovm/cmd/gno build --verbose .
.PHONY: test
test:
go run ../gnovm/cmd/gno test --verbose .
.PHONY: test.sync
test.sync:
go run ../gnovm/cmd/gno test --verbose --update-golden-tests .
.PHONY: clean
clean:
find . \( -name "*.gno.gen.go" -or -name ".*.gno.gen_test.go" \) -delete
.PHONY: fmt
GOFMT_FLAGS ?= -w
fmt:
go run -modfile ../misc/devdeps/go.mod mvdan.cc/gofumpt $(GOFMT_FLAGS) `find . -name "*.gno"`