-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
37 lines (26 loc) · 873 Bytes
/
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
ifndef VERBOSE
.SILENT:
endif
GOPATH = $(shell go env GOPATH)
export GO111MODULE = auto
dep_repo = https://github.com/morrildl
dep_android = $(GOPATH)/src/playground/android
dep_log = $(GOPATH)/src/playground/log
LOG_DEP = printf "\033[1;36mDEP\033[0m "; echo
LOG_GOC = printf "\033[1;36mGOC\033[0m "; echo
##
all: apksign
apksign: main.go
# Test for missing dependencies
go vet 2>/dev/null || make -f $(MAKEFILE_LIST) deps
$(LOG_GOC) $@
go build
deps: $(dep_android)/README.md \
$(dep_log)/README.md
GOBIN=$$PWD go get ./...
$(dep_android)/README.md:
$(LOG_DEP) Fetching dependency 'android'
[ ! -d "$(dep_android)" ] && git clone $(dep_repo)/playground-android $(dep_android) || printf ""
$(dep_log)/README.md:
$(LOG_DEP) Fetching dependency 'log'
[ ! -d "$(dep_log)" ] && git clone $(dep_repo)/playground-log $(dep_log) || printf ""