From 266d8c0cc25f9d93ea7da87eb199bc87e41c653e Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Wed, 2 Apr 2025 19:57:28 -0400 Subject: 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 * Apply review suggestions Signed-off-by: Xe Iaso --------- Signed-off-by: Xe Iaso --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3