aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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}