-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (34 loc) · 1001 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
38
39
40
41
42
43
44
45
46
SHELL=/bin/bash
.DEFAULT_GOAL := list
# Color Console Output
RESET=\033[0m
REDBOLD=\033[1;31m
GREENBOLD=\033[1;32m
YELLOWBOLD=\033[1;33m
CYANBOLD=\033[1;36m
list:
@echo ""
@echo -e "${GREENBOLD}Targets in this Makefile:${RESET}"
@echo ""
@LC_ALL=C $(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/(^|\n)# Files(\n|$$)/,/(^|\n)# Finished Make data base/ {if ($$1 !~ "^[#.]" && $$1 !~ "^[list.]" && $$1 !~ "^[always.]") {print "make "$$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
@echo ""
@echo "For details on these commands, see the bash scripts in the 'scripts/' directory."
@echo ""
golang-run:
scripts/golang_run.sh
golang-build:
scripts/golang_build.sh
golang-build-arm64:
scripts/golang_build_arm64.sh
golang-test:
scripts/golang_test.sh
golang-lint:
scripts/golang_lint.sh
golang-godoc:
scripts/golang_godoc.sh
docker-build:
scripts/docker_build.sh
docker-run:
scripts/docker_run.sh
docker-run-multi:
scripts/docker_run_multi.sh