From 96527c4ea63477abd26c7b37c2d9546e85cc42a9 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 3 Apr 1997 02:22:52 +0000 Subject: [PATCH] Add autoheader counterpart to autoconf-common et.al. --- sim/ChangeLog | 5 +++++ sim/Makefile.in | 15 ++++++++++++--- sim/README-HACKING | 9 ++++++++- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/sim/ChangeLog b/sim/ChangeLog index 014ef6ddc39..92f0b19376e 100644 --- a/sim/ChangeLog +++ b/sim/ChangeLog @@ -1,3 +1,8 @@ +Thu Apr 3 12:20:32 1997 Andrew Cagney + + * Makefile.in (autoheader-common, autoheader-changelog, + autoheader-install): Perform autoheader in addition to autoconf. + Wed Apr 2 15:09:05 1997 Doug Evans * Makefile.in (autoconf-install): New target. diff --git a/sim/Makefile.in b/sim/Makefile.in index 92fd900a380..7c9308ec826 100644 --- a/sim/Makefile.in +++ b/sim/Makefile.in @@ -196,7 +196,7 @@ config.status: configure # This is intended to be invoked in $srcdir as # "make -f Makefile.in autoconf-common". .PHONY: autoconf-common -autoconf-common: +autoconf-common autoheader-common: for d in * ; \ do \ if [ -d $$d -a -f $$d/configure.in ] ; \ @@ -205,11 +205,16 @@ autoconf-common: then \ echo "Running autoconf in $$d ..." ; \ (cd $$d && autoconf) ; \ + if [ $* = autoheader-common ] ; \ + then \ + echo "Running autoheader in $$d ..." ; \ + (cd $$d && autoheader) ; \ + fi ; \ fi ; \ fi ; \ done -autoconf-changelog: +autoconf-changelog autoheader-changelog: id="`id | sed -e 's/^[^(]*(\([^)]*\).*$$/\1/'`" ; \ name=`grep "^$$id:" /etc/passwd | cut -f 5 -d ':'` ; \ host="`hostname`" ; \ @@ -225,6 +230,10 @@ autoconf-changelog: ( echo "$$date $$name <$$id@$$host>" ; \ echo "" ; \ echo " * configure: Regenerated to track ../common/aclocal.m4 changes." ; \ + if [ $* = autoheader-changelog ] ; \ + then \ + echo " * config.in: Ditto." ; \ + fi ; \ echo "" ; \ cat $$d/ChangeLog \ ) > $$d/new-ChangeLog ; \ @@ -232,7 +241,7 @@ autoconf-changelog: fi ; \ done -autoconf-install: +autoconf-install autoheader-install: for d in * ; \ do \ if [ -d $$d -a -f $$d/configure.in ] ; \ diff --git a/sim/README-HACKING b/sim/README-HACKING index 48df341f4d9..cc11d790556 100644 --- a/sim/README-HACKING +++ b/sim/README-HACKING @@ -122,5 +122,12 @@ renaming): $ more */new-ChangeLog $ make -f Makefile.in autoconf-install +In a similar vein, both the configure and config.in files can be +updated using the sequence: + + $ cd devo/sim + $ make -f Makefile.in autoheader-common + $ make -f Makefile.in autoheader-changelog + $ more */new-ChangeLog + $ make -f Makefile.in autoheader-install - -- 2.30.2