-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 939 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 939 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
30
31
32
33
34
35
36
# =================================================================
#
# Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved
# Released as open source under the MIT License. See LICENSE file.
#
# =================================================================
bin/gotmpl_darwin_amd64:
GOOS=darwin GOARCH=amd64 go build -o bin/gotmpl_darwin_amd64 $$(go list ./...)
bin/gotmpl_linux_amd64:
GOOS=linux GOARCH=amd64 go build -o bin/gotmpl_linux_amd64 $$(go list ./...)
bin/gotmpl_windows_amd64.exe:
GOOS=windows GOARCH=amd64 go build -o bin/gotmpl_windows_amd64.exe $$(go list ./...)
bin/gotmpl_linux_arm64:
GOOS=linux GOARCH=arm64 go build -o bin/gotmpl_linux_arm64 $$(go list ./...)
build: \
bin/gotmpl_darwin_amd64 \
bin/gotmpl_linux_amd64 \
bin/gotmpl_windows_amd64.exe \
bin/gotmpl_linux_arm64
fmt:
go fmt $$(go list ./... )
install:
go install $$(go list ./...)
test:
bash scripts/test.sh
clean:
rm -fr bin