-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (32 loc) · 934 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
default:
@echo "Choose a target"
@echo " build-tools: Build the tools"
@echo " generate: Generate code with macro replacements"
@echo " run: Generate code and run it"
@echo " run-no-logging: Run the project with logging disabled at compile time"
@echo " run-no-macro: Run the project without macro replacements"
build-tools:
@echo "***** Building tools *****"
@echo
go build -o bin/tools/include tools/include/*.go
generate:
@echo
@echo "***** Generating the project *****"
@echo
@go generate ./...
run: generate
@echo
@echo "***** Running the project *****"
@echo
@go run -tags=use_macro generated/*.go
run-no-logging:
@echo
@echo "***** Running the project with logging disabled in compile time *****"
@echo
@GO_INCLUDE_DEFINES="DISABLE_LOGGING" go generate ./...
@go run -tags=use_macro generated/*.go
run-no-macro:
@echo
@echo "***** Running the project without macro *****"
@echo
@go run *.go