diff --git a/CONTRIBUTORS b/CONTRIBUTORS index bbf5950..d6052c6 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1 +1,3 @@ -quinnthepigeon@proton.me Quinn +# This file is generated by `make CONTRIBUTORS`, if editing manually, keep it sorted. +# List of all contributors of the project: +Quinn diff --git a/Makefile b/Makefile index 81c4e6e..9b3d03f 100644 --- a/Makefile +++ b/Makefile @@ -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,$@)