Add CONTRIBUTORS generation, and migrate CONTRIBUTORS file to said format.

This commit is contained in:
2026-02-05 15:51:40 +01:00
parent d4e281a477
commit 31f23ea6b4
2 changed files with 10 additions and 1 deletions

View File

@@ -82,6 +82,13 @@ clean:
-$(Q)$(RM) $(OBJ) $(DEP)
-$(Q)$(RM) -r bin/
PHONY += CONTRIBUTORS
CONTRIBUTORS:
$(Q)printf "# This file is generated by \`make $@\`, if editing manually, keep it sorted.\n" >CONTRIBUTORS~
$(Q)printf "# List of all contributors of the project:\n" >>CONTRIBUTORS~
$(Q)git log --format='%aN <%aE>%n%cN <%cE>' | sort -u >>CONTRIBUTORS~
$(Q)mv CONTRIBUTORS~ CONTRIBUTORS
# Links together the object files into the final binary.
bin/$(NAME): $(OBJ) | bin/
$(Q)$(call msg,LD,$@)