# Files that should be removed, but which Automake does not know.
-CLEANFILES = $(bin_SCRIPTS) autoconf.in
+MOSTLYCLEANFILES = $(bin_SCRIPTS) autoconf.in *.tmp
edit = sed \
-e 's,@SHELL\@,$(SHELL),g' \
-e 's,@PERL\@,$(PERL),g' \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
+ -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
autoconf.in: $(srcdir)/autoconf.as $(m4sh_m4f_dependencies)
$(MY_AUTOM4TE) --language M4sh --cache '' $(srcdir)/autoconf.as -o $@
-autoconf: autoconf.in Makefile
- rm -f autoconf autoconf.tmp
- $(edit) autoconf.in >autoconf.tmp
- chmod +x autoconf.tmp
- chmod a-w autoconf.tmp
- mv -f autoconf.tmp autoconf
-
-autoheader: $(srcdir)/autoheader.in Makefile
- rm -f autoheader autoheader.tmp
- $(edit) $(srcdir)/autoheader.in >autoheader.tmp
- chmod +x autoheader.tmp
- chmod a-w autoheader.tmp
- mv -f autoheader.tmp autoheader
-
-autom4te: $(srcdir)/autom4te.in Makefile
- rm -f autom4te autom4te.tmp
- $(edit) $(srcdir)/autom4te.in >autom4te.tmp
- chmod +x autom4te.tmp
- chmod a-w autom4te.tmp
- mv -f autom4te.tmp autom4te
-
-autoreconf: $(srcdir)/autoreconf.in Makefile
- rm -f autoreconf autoreconf.tmp
- $(edit) $(srcdir)/autoreconf.in >autoreconf.tmp
- chmod +x autoreconf.tmp
- chmod a-w autoreconf.tmp
- mv -f autoreconf.tmp autoreconf
-
-autoscan: $(srcdir)/autoscan.in Makefile
- rm -f autoscan autoscan.tmp
- $(edit) $(srcdir)/autoscan.in >autoscan.tmp
- chmod +x autoscan.tmp
- chmod a-w autoscan.tmp
- mv -f autoscan.tmp autoscan
-
-autoupdate: $(srcdir)/autoupdate.in Makefile
- rm -f autoupdate autoupdate.tmp
- $(edit) $(srcdir)/autoupdate.in >autoupdate.tmp
- chmod +x autoupdate.tmp
- chmod a-w autoupdate.tmp
- mv -f autoupdate.tmp autoupdate
-
-ifnames: $(srcdir)/ifnames.in Makefile
- rm -f ifnames ifnames.tmp
- $(edit) $(srcdir)/ifnames.in >ifnames.tmp
- chmod +x ifnames.tmp
- chmod a-w ifnames.tmp
- mv -f ifnames.tmp ifnames
+$(bin_SCRIPTS): Makefile
+ rm -f $@ $@.tmp
+ $(edit) $(srcdir)/$@.in >$@.tmp
+ chmod +x $@.tmp
+ chmod a-w $@.tmp
+ mv $@.tmp $@
+
+autoconf: $(srcdir)/autoconf.in
+autoheader: $(srcdir)/autoheader.in
+autom4te: $(srcdir)/autom4te.in
+autoreconf: $(srcdir)/autoreconf.in
+autoscan: $(srcdir)/autoscan.in
+autoupdate: $(srcdir)/autoupdate.in
+ifnames: $(srcdir)/ifnames.in
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
uninstall-am uninstall-info-am uninstall-man uninstall-man1
-autoconf.1: $(common_dep) $(srcdir)/autoconf.x $(binsrcdir)/autoconf.as
-autoheader.1: $(common_dep) $(srcdir)/autoheader.x $(binsrcdir)/autoheader.in
-autom4te.1: $(common_dep) $(srcdir)/autom4te.x $(binsrcdir)/autom4te.in
-autoreconf.1: $(common_dep) $(srcdir)/autoreconf.x $(binsrcdir)/autoreconf.in
-autoscan.1: $(common_dep) $(srcdir)/autoscan.x $(binsrcdir)/autoscan.in
-autoupdate.1: $(common_dep) $(srcdir)/autoupdate.x $(binsrcdir)/autoupdate.in
-ifnames.1: $(common_dep) $(srcdir)/ifnames.x $(binsrcdir)/ifnames.in
+autoconf.1: $(common_dep) $(binsrcdir)/autoconf.as
+autoheader.1: $(common_dep) $(binsrcdir)/autoheader.in
+autom4te.1: $(common_dep) $(binsrcdir)/autom4te.in
+autoreconf.1: $(common_dep) $(binsrcdir)/autoreconf.in
+autoscan.1: $(common_dep) $(binsrcdir)/autoscan.in
+autoupdate.1: $(common_dep) $(binsrcdir)/autoupdate.in
+ifnames.1: $(common_dep) $(binsrcdir)/ifnames.in
# Independent from this package.
-config.guess.1: $(srcdir)/config.guess.x $(top_srcdir)/config/config.guess
-config.sub.1: $(srcdir)/config.sub.x $(top_srcdir)/config/config.sub
+config.guess.1: $(top_srcdir)/config/config.guess
+config.sub.1: $(top_srcdir)/config/config.sub
.x.1:
echo "Updating man page $@"