-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
39 lines (33 loc) · 705 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
.PHONY: all bin stdlib_release stdlib_debug clean
all:
@$(MAKE) clear
@$(MAKE) get_deps
@$(MAKE) stdlib_release
@$(MAKE) bin
get_deps:
@echo
@echo "\033[4m\033[1mGetting go deps\033[0m"
@echo
go get ./...
bin:
@echo
@echo "\033[4m\033[1mBuilding binary\033[0m"
@echo
go build -o bin/hummus
stdlib_release:
@echo
@echo "\033[4m\033[1mBuilding stdlib for release\033[0m"
@echo
chmod +x scripts/prepare_release.sh
./scripts/prepare_release.sh
stdlib_debug:
@echo
@echo "\033[4m\033[1mBuilding stdlib for debug\033[0m"
@echo
chmod +x scripts/prepare_debug.sh
./scripts/prepare_debug.sh
clear:
@echo
@echo "\033[4m\033[1mClearing output folder\033[0m"
@echo
rm -rf bin/ || true