# Copyright (C) 2022-2023 Luke Shumaker # # SPDX-License-Identifier: GPL-2.0-or-later # main build: go build -o bin/ ./cmd/... .PHONY: build check: go test -race ./... .PHONY: check lint: tools/bin/golangci-lint tools/bin/golangci-lint run ./... .PHONY: lint # generate generate/files = LICENSE.gpl-2.0.txt generate: generate-clean $(MAKE) $(generate/files) .PHONY: generate generate-clean: rm -f $(generate/files) .PHONY: generate-clean LICENSE.gpl-2.0.txt: curl https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt > $@ # tools tools/bin/%: tools/src/%/pin.go tools/src/%/go.mod cd $(