-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (32 loc) · 1.14 KB
/
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
APP_NAME=taskboard
all: build
build: clean
@echo "----------------------------------------------------------"
@echo "Building $(APP_NAME)"
@echo "----------------------------------------------------------"
@go build -o $(APP_NAME)
format:
@echo "----------------------------------------------------------"
@echo "Formatting code"
@echo "----------------------------------------------------------"
@go fmt ./...
clean:
@echo "----------------------------------------------------------"
@echo "Cleaning"
@echo "----------------------------------------------------------"
@go clean
@rm -fr $(APP_NAME)
@rm -fr public/*
@rm -fr ui/dist
@rm -fr ui/package-lock.json
@rm -fr ui/node_modules
docker:
@echo "----------------------------------------------------------"
@echo "Build docker image"
@echo "----------------------------------------------------------"
@docker build -t $(APP_NAME) .
docker-nc:
@echo "----------------------------------------------------------"
@echo "Build docker image without caching"
@echo "----------------------------------------------------------"
@docker build --no-cache -t $(APP_NAME) .