aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-13 22:23:54 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-13 22:23:54 -0800
commit860e1ecb570bda229b6a64fef905923898e0f832 (patch)
tree261c4781766e3d6d273809625cc4e364ab07b925 /Makefile
parent47c43577ead8721008b858232511b2f65e0ed574 (diff)
downloadneko-860e1ecb570bda229b6a64fef905923898e0f832.tar.gz
neko-860e1ecb570bda229b6a64fef905923898e0f832.tar.bz2
neko-860e1ecb570bda229b6a64fef905923898e0f832.zip
Audit and reduce Go dependencies: replace go.rice with embed, pflag with flag
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 7 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index bdd0881..30504d1 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,6 @@ SH=/bin/sh
GO=go
NPM=npm
-RICE=rice
PANDOC=pandoc
BINARY=neko
@@ -14,30 +13,26 @@ LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD}"
default: build
-all: clean ui vanilla-ui embed build docs
+all: clean ui vanilla-ui build docs
clean:
rm -f ${BINARY}
- rm -f web/rice-box.go
rm -f readme.html
ui:
cd frontend && ${NPM} install && ${NPM} run build
- rm -rf dist/v2
- mkdir -p dist/v2
- cp -r frontend/dist/* dist/v2/
+ rm -rf web/dist/v2
+ mkdir -p web/dist/v2
+ cp -r frontend/dist/* web/dist/v2/
vanilla-ui:
- rm -rf dist/vanilla
- mkdir -p dist/vanilla
- cp vanilla/index.html vanilla/app.js vanilla/style.css dist/vanilla/
+ rm -rf web/dist/vanilla
+ mkdir -p web/dist/vanilla
+ cp vanilla/index.html vanilla/app.js vanilla/style.css web/dist/vanilla/
build:
${GO} build ${LDFLAGS} -o ${BINARY}
-embed:
- ${RICE} -i ./web embed-go
-
install: build
cp ${BINARY} ${GOBIN}