aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-04-06 08:44:52 -0400
committerGitHub <noreply@github.com>2025-04-06 12:44:52 +0000
commitdf27a96f1f67b8f30b96bf8fd28e985793dfd45d (patch)
treea470b34d27e1e0d1eb16d2e8ffac4373b2cdd764 /Makefile
parentf1f8fdf7529daccad8fffe97ca6c868f7a9472c7 (diff)
downloadanubis-df27a96f1f67b8f30b96bf8fd28e985793dfd45d.tar.xz
anubis-df27a96f1f67b8f30b96bf8fd28e985793dfd45d.zip
make a half-baked tarball (#221)
* make a half-baked tarball Closes #217 Signed-off-by: Xe Iaso <me@xeiaso.net> * make two tarballs: one with just the vendor, and one with vendor and npm Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net>
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