* Makefile.in (ChangeLog): New makefile variable.
authorAndrew Cagney <cagney@redhat.com>
Thu, 6 Jun 2002 16:33:45 +0000 (16:33 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 6 Jun 2002 16:33:45 +0000 (16:33 +0000)
* README-HACKING: Mention the ChangeLog makefile variable.

sim/ChangeLog
sim/Makefile.in
sim/README-HACKING

index 37ed975456d7cfb002b9fbf191cfcb14c6b81087..2a1bb25790a48d10597d97e1385f850c446327ee 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jun  6 12:34:13 2002  Andrew Cagney  <cagney@redhat.com>
+
+       * Makefile.in (ChangeLog): New makefile variable.
+       * README-HACKING: Mention the ChangeLog makefile variable.
+
 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
 
        * tic80/: Delete directory.
index 1e53780fd5de8ab69f2dba1c945ade0678bd24c0..aebdab3b2ab0300d32504bc679273be6c52274c6 100644 (file)
@@ -73,6 +73,10 @@ CC_FOR_BUILD = $(CC)
 # @target_makefile_frag@
 ###
 
+# Name of the ChangeLog file.
+ChangeLog = ChangeLog
+
+
 RUNTEST = `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
                echo $${srcdir}/../dejagnu/runtest ; else echo runtest; \
           fi`
@@ -229,7 +233,7 @@ autoconf-changelog autoheader-changelog:
        do \
            if [ -d $$d -a -f $$d/configure.in ] ; \
            then \
-                echo "Creating new-ChangeLog in $$d ..." ; \
+                echo "Creating new-$(ChangeLog) in $$d ..." ; \
                 ( echo "$$date  $$name  <$$id@$$host>" ; \
                   echo "" ; \
                   echo "       * configure: Regenerated to track ../common/aclocal.m4 changes." ; \
@@ -238,8 +242,8 @@ autoconf-changelog autoheader-changelog:
                     echo "     * config.in: Ditto." ; \
                   fi ; \
                   echo "" ; \
-                  cat $$d/ChangeLog \
-                ) > $$d/new-ChangeLog ; \
+                  cat $$d/$(ChangeLog) \
+                ) > $$d/new-$(ChangeLog) ; \
            fi ; \
        done
 
@@ -248,7 +252,7 @@ autoconf-install autoheader-install:
        do \
            if [ -d $$d -a -f $$d/configure.in ] ; \
            then \
-                echo "Moving $$d/new-ChangeLog to $$d/ChangeLog ..." ; \
-                mv $$d/new-ChangeLog $$d/ChangeLog ; \
+                echo "Moving $$d/new-$(ChangeLog) to $$d/$(ChangeLog) ..." ; \
+                mv $$d/new-$(ChangeLog) $$d/$(ChangeLog) ; \
            fi ; \
        done
index e4efeb155b0377c175615c6708e8dc9d8dad9131..bee504aa1e8e7a4039156c474ad536a21ee891d6 100644 (file)
@@ -153,6 +153,11 @@ updated using the sequence:
        $  make -f Makefile.in SHELL=/bin/sh autoheader-changelog
        $  more */new-ChangeLog
        $  make -f Makefile.in SHELL=/bin/sh autoheader-install
+
+To add the entries to an alternative ChangeLog file, use:
+
+       $  make ChangeLog=MyChangeLog ....
+
 \f
 tconfig.in
 ==========