Files
pmomusic/Makefile

24 lines
365 B
Makefile
Raw Normal View History

2025-06-08 13:25:01 +02:00
APP_NAME=pmomusic
# Build Go app
build: web
2025-06-08 13:25:01 +02:00
go build -o bin/$(APP_NAME) ./cmd/$(APP_NAME)
# Build web frontend
web:
@ echo Building the Web app
@ cd pmoapp/web && npm install && npm run build
@ echo Web app built
# Run Go app
2025-06-08 13:25:01 +02:00
run:
go run ./cmd/$(APP_NAME)
# Clean Go binary and web build
2025-06-08 13:25:01 +02:00
clean:
rm -rf bin/
rm -rf web/dist
2025-06-08 13:25:01 +02:00
# Build everything
all: build