aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2019-04-22 20:44:11 -0700
committerPaul Eggert2019-04-22 20:44:54 -0700
commit6fa8d3c894062e7d3bde2d1ed35b40f2272e59f5 (patch)
tree0903f68003cf965cb93d7013234db9877ccf214e
parent7cc66173e4288237eb00b96f1d2162b80c0e0b1b (diff)
downloademacs-6fa8d3c894062e7d3bde2d1ed35b40f2272e59f5.tar.gz
emacs-6fa8d3c894062e7d3bde2d1ed35b40f2272e59f5.zip
Let plain ‘make’ work even not GNU Make
* Makefile.in (top_distclean): Clean makefile as well as Makefile. * configure.ac: If not using plain ‘make’, create a makefile so that plain ‘make’ simply calls $(MAKE).
-rw-r--r--Makefile.in2
-rw-r--r--configure.ac10
2 files changed, 10 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 53703638c42..6b99d24da49 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -869,7 +869,7 @@ top_bootclean=\
869top_distclean=\ 869top_distclean=\
870 ${top_bootclean}; \ 870 ${top_bootclean}; \
871 rm -f config.status config.log~ \ 871 rm -f config.status config.log~ \
872 Makefile lib/gnulib.mk ${SUBDIR_MAKEFILES} 872 Makefile makefile lib/gnulib.mk ${SUBDIR_MAKEFILES}
873 873
874distclean_dirs = $(clean_dirs) leim lisp 874distclean_dirs = $(clean_dirs) leim lisp
875 875
diff --git a/configure.ac b/configure.ac
index 0ecb8c40e61..8b363c7fca6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5814,4 +5814,12 @@ you can continue to support by using '$0 --with-pop'.])
5814 esac 5814 esac
5815fi 5815fi
5816 5816
5817test "$MAKE" = make || AC_MSG_NOTICE([Now you can run '$MAKE'.]) 5817# Let plain 'make' work.
5818test "$MAKE" = make || test -f makefile || cat >makefile <<EOF
5819.POSIX:
5820MAKE = $MAKE
5821all:
5822 \$(MAKE) -f Makefile \$?
5823.DEFAULT:
5824 \$(MAKE) -f Makefile \$<
5825EOF