aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-13 22:14:30 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-13 22:14:30 -0800
commit47c43577ead8721008b858232511b2f65e0ed574 (patch)
treea15d1a4a4bb64b4b7d3de650b306835d8d7f63a5 /Makefile
parent76cb9c2a39d477a64824a985ade40507e3bbade1 (diff)
downloadneko-47c43577ead8721008b858232511b2f65e0ed574.tar.gz
neko-47c43577ead8721008b858232511b2f65e0ed574.tar.bz2
neko-47c43577ead8721008b858232511b2f65e0ed574.zip
Optimize asset packaging: move UI assets to root dist/ and decouple rice embedding
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d99e550..bdd0881 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD}"
default: build
-all: clean build docs
+all: clean ui vanilla-ui embed build docs
clean:
rm -f ${BINARY}
@@ -23,11 +23,21 @@ clean:
ui:
cd frontend && ${NPM} install && ${NPM} run build
+ rm -rf dist/v2
+ mkdir -p dist/v2
+ cp -r frontend/dist/* dist/v2/
-build: ui
- ${RICE} -i ./web embed-go
+vanilla-ui:
+ rm -rf dist/vanilla
+ mkdir -p dist/vanilla
+ cp vanilla/index.html vanilla/app.js vanilla/style.css dist/vanilla/
+
+build:
${GO} build ${LDFLAGS} -o ${BINARY}
+embed:
+ ${RICE} -i ./web embed-go
+
install: build
cp ${BINARY} ${GOBIN}