/ Makefile
Makefile
 1  # SPDX-FileCopyrightText: 2024 Mass Labs
 2  #
 3  # SPDX-License-Identifier: Unlicense
 4  
 5  .phony: reuse
 6  
 7  CPY := "Mass Labs"
 8  
 9  reuse:
10  	reuse annotate --license Unlicense --copyright $(CPY) --merge-copyrights Makefile README.md flake.nix package.json tsconfig.json pnpm-*.yaml .gitignore
11  
12  	git ls-files packages/client > /tmp/client_files
13  	cat /tmp/client_files | xargs reuse annotate --license MIT --copyright $(CPY) --merge-copyrights
14  
15  	git ls-files packages/contracts > /tmp/client_files
16  	cat /tmp/client_files | xargs reuse annotate --license Unlicense --copyright $(CPY) --merge-copyrights
17  
18  	find packages/frontend -name '*.ts' \
19  		-or -name '*.tsx' \
20  		-or -name '*.js' \
21  		-or -name '*.css' \
22  		-or -name '*.yaml' \
23  		-or -name '*.json' \
24  		-or -name 'README.md' \
25  		| grep -vE '(node_modules|.next)' > /tmp/frontend_files
26  	cat /tmp/frontend_files | xargs reuse annotate --license GPL-3.0-or-later --copyright $(CPY) --merge-copyrights
27  	
28  	# TODO: properly license frontend assets