forked from SleepingBag945/notion_manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 784 Bytes
/
Makefile
File metadata and controls
40 lines (31 loc) · 784 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
32
33
34
35
36
37
38
39
40
.PHONY: build run clean test web web-install
# Binary name
BINARY=notion-manager
# Build frontend and backend
build: web
go build -o $(BINARY).exe ./cmd/notion-manager/
# Build backend only (skip frontend)
build-go:
go build -o $(BINARY).exe ./cmd/notion-manager/
# Run the proxy
run: build
./$(BINARY).exe
# Install frontend dependencies
web-install:
cd web && npm install
# Build frontend and copy to embed directory
web:
cd web && npm run build
cmd /c "if exist internal\web\dist rmdir /s /q internal\web\dist"
cmd /c "xcopy web\dist internal\web\dist\ /E /I /Y /Q"
# Clean build artifacts
clean:
del /f $(BINARY).exe 2>nul || true
-rmdir /s /q web\dist 2>nul
-rmdir /s /q internal\web\dist 2>nul
# Run tests
test:
go test ./...
# Check code
vet:
go vet ./...