scripts. Use explicit rules instead.
+2000-12-12 Pavel Roskin <proski@gnu.org>
+
+ * Makefile.am: Don't use suffix rules for perl and shell
+ scripts. Use explicit rules instead.
+
2000-12-12 Pavel Roskin <proski@gnu.org>
* autoscan.pl (init_tables): Allow spaces on the right hand side
SUBDIRS = . m4 man doc tests
-SUFFIXES = .m4 .m4f .pl .sh
+SUFFIXES = .m4 .m4f
## There is currently no means with Automake not to run aclocal.
ACLOCAL_AMFLAGS = --version >/dev/null && touch aclocal.m4
WGET = wget
## The scripts. ##
## ------------- ##
-# Follow the version number changes.
-$(bin_SCRIPTS): configure.in
-
editsh = sed \
-e 's,@datadir\@,$(pkgdatadir),g' \
-e 's,@M4\@,$(M4),g' \
-e 's,@VERSION\@,$(VERSION),g' \
-e 's,@PACKAGE\@,$(PACKAGE),g'
-.sh:
- rm -f $@ $@.tmp
- $(editsh) $< >$@.tmp
- chmod +x $@.tmp
- mv $@.tmp $@
-
-.pl:
- rm -f $@ $@.tmp
- $(editpl) $< >$@.tmp
- chmod +x $@.tmp
- mv $@.tmp $@
+autoconf: $(srcdir)/autoconf.sh $(srcdir)/configure.in
+ rm -f autoconf autoconf.tmp
+ $(editsh) $(srcdir)/autoconf.sh >autoconf.tmp
+ chmod +x autoconf.tmp
+ mv autoconf.tmp autoconf
+
+autoheader: $(srcdir)/autoheader.sh $(srcdir)/configure.in
+ rm -f autoheader autoheader.tmp
+ $(editsh) $(srcdir)/autoheader.sh >autoheader.tmp
+ chmod +x autoheader.tmp
+ mv autoheader.tmp autoheader
+
+autoreconf: $(srcdir)/autoreconf.sh $(srcdir)/configure.in
+ rm -f autoreconf autoreconf.tmp
+ $(editsh) $(srcdir)/autoreconf.sh >autoreconf.tmp
+ chmod +x autoreconf.tmp
+ mv autoreconf.tmp autoreconf
+
+autoupdate: $(srcdir)/autoupdate.sh $(srcdir)/configure.in
+ rm -f autoupdate autoupdate.tmp
+ $(editsh) $(srcdir)/autoupdate.sh >autoupdate.tmp
+ chmod +x autoupdate.tmp
+ mv autoupdate.tmp autoupdate
+
+ifnames: $(srcdir)/ifnames.sh $(srcdir)/configure.in
+ rm -f ifnames ifnames.tmp
+ $(editsh) $(srcdir)/ifnames.sh >ifnames.tmp
+ chmod +x ifnames.tmp
+ mv ifnames.tmp ifnames
+
+autoscan: $(srcdir)/autoscan.pl $(srcdir)/configure.in
+ rm -f autoscan autoscan.tmp
+ $(editpl) $(srcdir)/autoscan.pl >autoscan.tmp
+ chmod +x autoscan.tmp
+ mv autoscan.tmp autoscan
## ------------------ ##
SUBDIRS = . m4 man doc tests
-SUFFIXES = .m4 .m4f .pl .sh
+SUFFIXES = .m4 .m4f
ACLOCAL_AMFLAGS = --version >/dev/null && touch aclocal.m4
WGET = wget
GZIP_ENV = --best
all: all-redirect
.SUFFIXES:
-.SUFFIXES: .m4 .m4f .pl .sh
+.SUFFIXES: .m4 .m4f
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
$(INSTALL_DATA) $$d$$p.txt $(DESTDIR)$(pkgdatadir)/$$f; \
done
-# Follow the version number changes.
-$(bin_SCRIPTS): configure.in
-
-.sh:
- rm -f $@ $@.tmp
- $(editsh) $< >$@.tmp
- chmod +x $@.tmp
- mv $@.tmp $@
-
-.pl:
- rm -f $@ $@.tmp
- $(editpl) $< >$@.tmp
- chmod +x $@.tmp
- mv $@.tmp $@
+autoconf: $(srcdir)/autoconf.sh $(srcdir)/configure.in
+ rm -f autoconf autoconf.tmp
+ $(editsh) $(srcdir)/autoconf.sh >autoconf.tmp
+ chmod +x autoconf.tmp
+ mv autoconf.tmp autoconf
+
+autoheader: $(srcdir)/autoheader.sh $(srcdir)/configure.in
+ rm -f autoheader autoheader.tmp
+ $(editsh) $(srcdir)/autoheader.sh >autoheader.tmp
+ chmod +x autoheader.tmp
+ mv autoheader.tmp autoheader
+
+autoreconf: $(srcdir)/autoreconf.sh $(srcdir)/configure.in
+ rm -f autoreconf autoreconf.tmp
+ $(editsh) $(srcdir)/autoreconf.sh >autoreconf.tmp
+ chmod +x autoreconf.tmp
+ mv autoreconf.tmp autoreconf
+
+autoupdate: $(srcdir)/autoupdate.sh $(srcdir)/configure.in
+ rm -f autoupdate autoupdate.tmp
+ $(editsh) $(srcdir)/autoupdate.sh >autoupdate.tmp
+ chmod +x autoupdate.tmp
+ mv autoupdate.tmp autoupdate
+
+ifnames: $(srcdir)/ifnames.sh $(srcdir)/configure.in
+ rm -f ifnames ifnames.tmp
+ $(editsh) $(srcdir)/ifnames.sh >ifnames.tmp
+ chmod +x ifnames.tmp
+ mv ifnames.tmp ifnames
+
+autoscan: $(srcdir)/autoscan.pl $(srcdir)/configure.in
+ rm -f autoscan autoscan.tmp
+ $(editpl) $(srcdir)/autoscan.pl >autoscan.tmp
+ chmod +x autoscan.tmp
+ mv autoscan.tmp autoscan
# When processing the file with diversion disabled, there must be no
# output but comments and empty lines.