ACLOCAL_AMFLAGS = -I m4 -I src/libopts/m4 -I src/gl/m4 -I lib/unistring/m4 --install
EXTRA_DIST = cfg.mk maint.mk CONTRIBUTING.md README.md LICENSE AUTHORS NEWS \
- ChangeLog THANKS INSTALL.md RELEASES.md
+ ChangeLog THANKS INSTALL.md RELEASES.md .mailmap
DISTCLEANFILES = AUTHORS
-AUTHORS:
- @echo -e "The authors list is autogenerated from the git history; sorted by number of commits\n" >AUTHORS
- @git shortlog -sen| cut -f 2 | sed 's/@/ at /g' >> AUTHORS
- @echo -e "\n\nThe translators list is autogenerated from po file history\n" >>AUTHORS
- @sed -n 's/.*Last-Translator: *\(.*\) *<.*/\1/p' po/*.po | sort -u >>AUTHORS
+AUTHORS: Makefile.am .mailmap
+ $(AM_V_GEN) { \
+ echo -e "The authors list is autogenerated from the git history; sorted by number of commits\n"; \
+ git shortlog -sen --no-merges --group author --group trailer:co-authored-by | cut -f 2 | sed 's/@/ at /g'; \
+ echo -e "\n\nThe translators list is autogenerated from po file history\n"; \
+ sed -n 's/.*Last-Translator: *\(.*\) *<.*/\1/p' po/*.po | sort -u; \
+ } > $@-t && mv $@-t $@
pic-check:
@echo "Checking for position dependent code"