-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (28 loc) · 708 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (28 loc) · 708 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
.RECIPEPREFIX = >
help:
> @echo "make [all|init|test|build|exe|run|clean|install]"
> @echo "all: init test build exe run"
> @echo "init: get required external packages"
> @echo "test: run unit test"
> @echo "build: build the module"
> @echo "exe: make executable for the module"
> @echo "clean: clean module C objects"
> @echo "run: exec the module code"
> @echo "install: install the module in go libs"
all: init test build exe run
> @echo "Make all scopes"
init:
> @go get github.com/stretchr/testify
build:
> @go build . > /dev/null
exe:
> @go build --buildmode exe .
run:
> @go run main.go
install:
> @go install
clean:
> @go clean
test:
> @go test
.PHONY: help all init test build exe run clean install