summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-07-10 13:11:55 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-07-10 14:25:45 -0600
commit8d0bbfc6e4d29dc6a3c5969b0f58c42a7347e09d (patch)
treeefb9247e12d2dee46124017b794bc094ed9ceb27 /Makefile
parent17d1dca1e762f23171ae73af27dd9de7df43a48b (diff)
Add license and copyright info
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 20 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d730ab3..c6cb224 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,7 @@
+# Copyright (C) 2022 Luke Shumaker <lukeshu@lukeshu.com>
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
# main
build:
@@ -12,14 +16,29 @@ lint: tools/bin/golangci-lint
tools/bin/golangci-lint run ./...
.PHONY: lint
-generate:
+# generate
+
+generate/files = COPYING.gpl-2.0.txt
+generate/files += COPYING.gpl-3.0.txt
+generate/files += COPYING.apache-2.0.txt
+
+generate: generate-clean
$(MAKE) -C lib/btrfs
+ $(MAKE) $(generate/files)
.PHONY: generate
generate-clean:
$(MAKE) -C lib/btrfs clean
+ rm -f $(generate/files)
.PHONY: generate-clean
+COPYING.gpl-2.0.txt:
+ curl https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt > $@
+COPYING.gpl-3.0.txt:
+ curl https://www.gnu.org/licenses/gpl-3.0.txt > $@
+COPYING.apache-2.0.txt:
+ curl https://apache.org/licenses/LICENSE-2.0.txt > $@
+
# tools
tools/bin/%: tools/src/%/pin.go tools/src/%/go.mod