-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
31 lines (27 loc) · 1.02 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
.PHONY: backend web cli
web:
@echo -----------------------------------------
@echo " Updating submodules..."
@echo -----------------------------------------
git submodule update --init --recursive
@echo -----------------------------------------
@echo " Generating TypeScript files from go..."
@echo -----------------------------------------
go run utils/generate_typescript.go ./web/ts
@echo -----------------------------------------
@echo " Compiling TypeScript to JavaScript..."
@echo -----------------------------------------
tsc --removeComments
backend: web
@echo -----------------------------------------
@echo " Building backend..."
@echo -----------------------------------------
go build -ldflags="-s -w" -tags yeetfile-server -o yeetfile-server ./backend
@echo -----------------------------------------
@echo " Build complete: ./yeetfile-server"
@echo -----------------------------------------
cli:
go build -ldflags="-s -w" -tags yeetfile -o yeetfile ./cli
clean:
rm -f yeetfile-web
rm -f yeetfile