chore: add Makefile

This commit is contained in:
Fritz Heiden 2025-04-01 08:21:21 +02:00
parent 811e348697
commit 717aaf1463
2 changed files with 11 additions and 4 deletions

11
Makefile Normal file
View File

@ -0,0 +1,11 @@
build: build-server build-web-interface
echo "done"
build-server:
CGO_ENABLED=1 go build -C "./main" -o ../start
build-server-start: build-server
chmod +x ./start; ./start
build-web-interface:
cd www && npm run build

View File

@ -1,4 +0,0 @@
#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CGO_ENABLED=1 go build -C "$SCRIPT_DIR/main" -o ../start