]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Merge the two rules for creating scripts.
authorStepan Kasal <kasal@ucw.cz>
Tue, 24 May 2005 06:14:27 +0000 (06:14 +0000)
committerStepan Kasal <kasal@ucw.cz>
Tue, 24 May 2005 06:14:27 +0000 (06:14 +0000)
ChangeLog
bin/Makefile.am

index e32154c3bb35ee2b9ac98be34205b0b1063f64e4..076e124356278032f17622a4e07644c53edcfaf1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-05-24  Stepan Kasal  <kasal@ucw.cz>
+
+       * bin/Makefile.am: Merge the two rules for creating scripts.
+
 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
 
        * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
index 05ad01e2fb095e682c253b2f927fe42b7ecd7c8f..10c928fea2a22875daaa171f80d6c2882813fdbb 100644 (file)
@@ -55,17 +55,18 @@ edit = sed \
 autoconf.in: $(srcdir)/autoconf.as $(m4sh_m4f_dependencies)
        $(MY_AUTOM4TE) --language M4sh --cache '' $(srcdir)/autoconf.as -o $@
 
-## All the files below depend on Makefile so that they are rebuilt
-## when the prefix etc. changes.  It took quite a while to have these
-## rules correct, don't break them!
+## All the scripts depend on Makefile so that they are rebuilt when the
+## prefix etc. changes.  It took quite a while to have the rule correct,
+## don't break it!
 ## Use chmod -w to prevent people from editing the wrong file by accident.
-autoheader autom4te autoreconf autoscan autoupdate ifnames: Makefile
+$(bin_SCRIPTS): Makefile
        rm -f $@ $@.tmp
-       $(edit) $(srcdir)/$@.in >$@.tmp
+       $(edit) `test -f ./$@.in || echo $(srcdir)/`$@.in >$@.tmp
        chmod +x $@.tmp
        chmod a-w $@.tmp
        mv $@.tmp $@
 
+autoconf: autoconf.in
 autoheader: $(srcdir)/autoheader.in
 autom4te: $(srcdir)/autom4te.in
 autoreconf: $(srcdir)/autoreconf.in
@@ -73,14 +74,6 @@ autoscan: $(srcdir)/autoscan.in
 autoupdate: $(srcdir)/autoupdate.in
 ifnames: $(srcdir)/ifnames.in
 
-# autoconf.in is in ., not in $(srcdir).
-autoconf: autoconf.in Makefile
-       rm -f $@ $@.tmp
-       $(edit) $@.in >$@.tmp
-       chmod +x $@.tmp
-       chmod a-w $@.tmp
-       mv $@.tmp $@
-
 
 ## --------------- ##
 ## Building TAGS.  ##