diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -1,4 +1,4 @@ -# Copyright (C) 2022 Luke Shumaker <lukeshu@lukeshu.com> +# Copyright (C) 2022-2023 Luke Shumaker <lukeshu@lukeshu.com> # # SPDX-License-Identifier: GPL-2.0-or-later @@ -14,6 +14,21 @@ 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 |