-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (26 loc) · 951 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
build:
@echo -e "\e[96mBuilding for \e[95mARM (version 7)\e[39m"
@echo -e "\e[96mBuilding \e[93mBinary\e[39m"
@export GHW_DISABLE_WARNINGS=1
@go build -o bin/robot_controller cmd/main.go 1>/dev/null
@echo -e "\e[92mBuild Complete\e[39m"
build-windows:
@echo -e "\e[96mBuilding for \e[95mARM (version 7)\e[39m"
@echo -e "\e[96mBuilding \e[93mBinary\e[39m"
@export GHW_DISABLE_WARNINGS=1
@set GOOS=linux && set GOARCH=arm && go build -o bin/robot_controller cmd/main.go
@echo -e "\e[92mBuild Complete\e[39m"
build-ui:
if [[ ! -e webserver/www/index.html ]]; then\
echo "Robot Controller - Need to do \"make build\" or similar build (for other platforms) before using GUI!" > webserver/www/index.html;\
exit 1\
fi
@cd webserver && statik -src=www -f 1>/dev/null
run:
@bin/robot_controller
install-dep:
@go get -u github.com/rakyll/statik
@mkdir -p bin
@mkdir -p "webserver/www"
@touch webserver/www/index.html
@go get -u -v all