From 91d400d3f8b32cbb4f29ededf2110c62f2dad5eb Mon Sep 17 00:00:00 2001 From: mccallum Date: Thu, 6 Apr 1995 20:12:21 +0000 Subject: [PATCH] (FILE_AUTHORS): New variable. (AUTHORS): New target. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@306 72102866-910b-0410-8b05-ffd578937521 --- Makefile.in | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Makefile.in b/Makefile.in index 5a206cf37..8ae832c34 100644 --- a/Makefile.in +++ b/Makefile.in @@ -95,6 +95,13 @@ INCLUDEFLAGS='$(INCLUDEFLAGS)' DEFS='$(DEFS)' .c.o: $(CC) -c $(ALL_CPPFLAGS) $(DEFS) $(ALL_CFLAGS) $< +# Grep for these names to build the legally-required "AUTHORS" file. +FILE_AUTHORS = \ +"R. Andrew McCallum" \ +"Kresten Krab Thorup" \ +"Adam Fedor" \ +"Mark Lakata" + GNU_MFILES = \ Array.m \ Bag.m \ @@ -509,6 +516,17 @@ NEWS: news.texi version.texi ADVERTISEMENT: advertisement.texi version.texi $(MAKEINFO) -o ADVERTISEMENT -D ADVERTISEMENT_ONLY \ --no-header --no-split $(srcdir)/advertisement.texi +AUTHORS: Makefile.in + rm -f AUTHORS + @echo Finding file authors... + @echo 'For the legal record, here is a list of who wrote what:'>AUTHORS + @for a in $(FILE_AUTHORS) \ + ; do \ + echo "\n\n$${a}:\n" >>AUTHORS; \ + egrep -l "((Written by)|(Author)).*$${a}" \ + $(DIST_FILES) >>AUTHORS; \ + done + Makefile: Makefile.in config.status $(SHELL) config.status config.status: configure