diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..23ed243 --- /dev/null +++ b/Makefile @@ -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 \ No newline at end of file diff --git a/build.sh b/build.sh deleted file mode 100755 index 0dad282..0000000 --- a/build.sh +++ /dev/null @@ -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