summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-25 19:12:01 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-25 19:12:01 -0700
commitaee85227e430d7df0a812abf95d75c0a0c4d2716 (patch)
tree310c3f27ce3a177bbfbb51beb8a0d12c5beffd1a /Makefile
parent5cc14a93670c2922a5aef19aa7a2315f7cdd81fb (diff)
LICENSE: Split the GPL to a separate file
I'm hoping the pkg.go.dev will now detect it as "BSD-3-Clause, GPL-2.0-or-later" instead of "BSD-3-Clause, GPL-2.0, GPL-2.0-or-later".
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index abe3cd2..867bae9 100644
--- a/Makefile
+++ b/Makefile
@@ -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