aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c16fa57..9b8b61c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
NODE_MODULES = node_modules
+VERSION := $(shell cat ./VERSION)
-.PHONY: build assets deps lint test
+.PHONY: build assets deps lint prebaked-build test
assets:
npm run assets
@@ -19,5 +20,8 @@ lint:
go vet ./...
go tool staticcheck ./...
+prebaked-build:
+ go build -o ./var/anubis -ldflags "-X 'github.com/TecharoHQ/anubis.Version=$(VERSION)'" ./cmd/anubis
+
test:
npm run test \ No newline at end of file