forked from gnolang/gno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (32 loc) · 1.09 KB
/
Makefile
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
30
31
32
33
34
35
36
37
38
39
.PHONY: help
help:
@echo "Available make commands:"
@cat Makefile | grep '^[a-z][^:]*:' | cut -d: -f1 | sort | sed 's/^/ /'
rundep=go run -modfile ../misc/devdeps/go.mod
.PHONY: install
install: install_gnokey install_gno
# shortcuts to frequently used commands from sub-components.
install_gnokey:
$(MAKE) --no-print-directory -C ./gno.land install.gnokey
@echo "[+] 'gnokey' is installed. more info in ./gno.land/."
install_gno:
$(MAKE) --no-print-directory -C ./gnovm install
@echo "[+] 'gno' is installed. more info in ./gnovm/."
.PHONY: test
test:
go test -count=1 -v ./misc/docker-integration
.PHONY: test.components
test.components:
$(MAKE) --no-print-directory -C tm2 test
$(MAKE) --no-print-directory -C gnovm test
$(MAKE) --no-print-directory -C gno.land test
$(MAKE) --no-print-directory -C examples test
.PHONY: fmt
fmt:
$(MAKE) --no-print-directory -C tm2 fmt
$(MAKE) --no-print-directory -C gnovm fmt
$(MAKE) --no-print-directory -C gno.land fmt
$(MAKE) --no-print-directory -C examples fmt
.PHONY: lint
lint:
golangci-lint run --config .github/golangci.yml