aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-04-02 19:57:28 -0400
committerGitHub <noreply@github.com>2025-04-02 23:57:28 +0000
commit266d8c0cc25f9d93ea7da87eb199bc87e41c653e (patch)
tree0b21b2b7637c6847f396b6e9efe50fe39fc60181 /Makefile
parent573dfd099fa53c0cdbc3256cf15ea36af5bb9cb0 (diff)
downloadanubis-266d8c0cc25f9d93ea7da87eb199bc87e41c653e.tar.xz
anubis-266d8c0cc25f9d93ea7da87eb199bc87e41c653e.zip
add a Makefile (#191)
* add a Makefile Based on advice from IRC, a makefile helps downstream packagers understand how to build the software. Signed-off-by: Xe Iaso <me@xeiaso.net> * Apply review suggestions Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..380d9f1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+NODE_MODULES = node_modules
+
+.PHONY: build assets deps lint test
+
+$(NODE_MODULES):
+ npm run assets
+
+assets: $(NODE_MODULES)
+
+deps: assets
+ npm ci
+ go mod download
+
+build: deps
+ npm run build
+ @echo "Anubis is now built to ./var/anubis"
+
+all: build
+
+lint:
+ go vet ./...
+ staticcheck ./...
+
+test:
+ npm run test \ No newline at end of file