third_party: Add Makefile to generate copyright file

This commit is contained in:
Koichiro IWAO 2023-03-28 16:57:18 +09:00
parent 2c5940f0a0
commit 68555abe74
2 changed files with 9 additions and 1 deletions

8
third_party/Makefile.copying vendored Normal file
View File

@ -0,0 +1,8 @@
copying: copying_third_party.h
copying_third_party.h:
bin2c copying_third_party < COPYING-THIRD-PARTY > copying_third_party.h
clean:
rm -f copying_third_party.h

View File

@ -20,5 +20,5 @@ adding new third-party libraries.
1. Install [adobe/bin2c](https://github.com/adobe/bin2c) to your development
environment
2. Write all third-party license terms to `COPYING-THIRD-PARTY`
3. Run `make copying` to generate `copying_third_party.h`
3. Run `make -f Makefile.copying` to generate `copying_third_party.h`
4. Commit generated `copying_third_party.h`