aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 9b8b61cd10827faf64c9c01d17581b8f2565e098 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
NODE_MODULES = node_modules
VERSION := $(shell cat ./VERSION)

.PHONY: build assets deps lint prebaked-build test

assets:
	npm run assets

deps:
	npm ci
	go mod download

build: deps
	npm run build
	@echo "Anubis is now built to ./var/anubis"

all: build

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