-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 794 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 794 Bytes
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
# Makefile in accordance with the docs on git management (to use in combination with meta)
.PHONY: build start clean test
BUILD_DIR=bin/
BINARY_NAME=display
lint:
@echo "Lint check..."
@GOFLAGS="-buildvcs=false" golangci-lint run
@echo "Lint complete"
build: #lint
@echo "building ${BINARY_NAME}"
@cd src/ && go build -o "../$(BUILD_DIR)${BINARY_NAME}" ${buildargs}
#
# You can specify run arguments and build arguments using runargs and buildargs, like this:
# make start runargs="-debug"
# make start runargs="-debug" buildargs="-verbose"
# make build buildargs="-verbose"
#
start: build
@echo "starting ${BINARY_NAME}"
./${BUILD_DIR}${BINARY_NAME} ${runargs}
clean:
@echo "Cleaning all targets for ${BINARY_NAME}"
rm -rf $(BUILD_DIR)
test: lint
@echo "No tests for display"