+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
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
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. ##