forked from alibahmanyar/breaklist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
24 lines (16 loc) · 769 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
.PHONY: clean setup all release
all: build/reportGenerator build/webserver build/static
release: all
goreleaser release --snapshot --clean
setup:
cd ./frontend/breaklist; npm install
clean:
rm -rf build
rm -rf dist
build/webserver: ./backend/*
cd ./backend; go mod tidy; go build -ldflags '-w -s' -o ../build/webserver .
build/reportGenerator: ./reportGenerator/*
cd ./reportGenerator; go mod tidy; go build -ldflags '-w -s' -o ../build/reportGenerator .; cp -r weathercodes template.html ../build/
cp ./reportGenerator/.env.example build/.env.example
build/static: ./frontend/breaklist/src/* ./frontend/breaklist/src/routes/* ./frontend/breaklist/static/* ./frontend/breaklist/*
cd ./frontend/breaklist; npm run build; cp -r ./build ../../build/static/