Makefile: fix subtle logic bug (#228)

Closes #226

Makefile dependencies are backwards, apparently.

Also add staticcheck as a `go tool` dependency.
This commit is contained in:
Xe Iaso
2025-04-06 00:28:08 -04:00
committed by GitHub
parent e58abbe4de
commit 95416dfe82
4 changed files with 33 additions and 11 deletions

View File

@@ -2,12 +2,10 @@ NODE_MODULES = node_modules
.PHONY: build assets deps lint test
$(NODE_MODULES):
assets:
npm run assets
assets: $(NODE_MODULES)
deps: assets
deps:
npm ci
go mod download
@@ -19,7 +17,7 @@ all: build
lint:
go vet ./...
staticcheck ./...
go tool staticcheck ./...
test:
npm run test