-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (24 loc) · 992 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
# ==================================================================================== #
# HELPERS
# ==================================================================================== #
## help: print this help message
.PHONY: help
help:
@echo 'Usage:'
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
# ==================================================================================== #
# DEVELOPMENT
# ==================================================================================== #
## run/web: run the cmd/web application
.PHONY: run/web
run/web:
@go run ./cmd/web -addr=:4000
# ==================================================================================== #
# BUILD
# ==================================================================================== #
## build/web: build the cmd/web application
.PHONY: build/web
build/web:
@echo 'Building cmd/web...'
go build -ldflags="-s -w" -o=./bin/web ./cmd/web
sudo systemctl restart jwoods