-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (41 loc) · 1.36 KB
/
Makefile
File metadata and controls
51 lines (41 loc) · 1.36 KB
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
41
42
43
44
45
46
47
48
49
50
51
.PHONY: dev build-windows build-linux build-mac clean deps lint format check help
# Run the application in development mode
dev:
wails dev
# Build the application for Windows
build-windows:
wails build -platform windows/amd64
# Build the application for Linux
build-linux:
wails build -platform linux/amd64
# Build the application for macOS
build-mac:
wails build -platform darwin/universal
# Clean build artifacts
clean:
rm -rf build/bin
cd frontend && rm -rf dist
# Install frontend dependencies
deps:
cd frontend && npm install
# Lint frontend code
lint:
cd frontend && npm run lint
# Format frontend code
format:
cd frontend && npm run format
# Check frontend code
check:
cd frontend && npm run check
# Help command to show available targets
help:
@echo "Available commands:"
@echo " make dev - Run the application in development mode"
@echo " make build-windows - Build the application for Windows (64-bit)"
@echo " make build-linux - Build the application for Linux (64-bit)"
@echo " make build-mac - Build the application for macOS (universal)"
@echo " make clean - Clean build artifacts"
@echo " make deps - Install frontend dependencies"
@echo " make lint - Lint frontend code"
@echo " make format - Format frontend code"
@echo " make check - Check and apply fixes to frontend code"