[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 6fa8d3c: Let plain ‘make’ work even not GNU Make
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master 6fa8d3c: Let plain ‘make’ work even not GNU Make |
Date: |
Mon, 22 Apr 2019 23:44:58 -0400 (EDT) |
branch: master
commit 6fa8d3c894062e7d3bde2d1ed35b40f2272e59f5
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
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).
---
Makefile.in | 2 +-
configure.ac | 10 +++++++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 5370363..6b99d24 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -869,7 +869,7 @@ top_bootclean=\
top_distclean=\
${top_bootclean}; \
rm -f config.status config.log~ \
- Makefile lib/gnulib.mk ${SUBDIR_MAKEFILES}
+ Makefile makefile lib/gnulib.mk ${SUBDIR_MAKEFILES}
distclean_dirs = $(clean_dirs) leim lisp
diff --git a/configure.ac b/configure.ac
index 0ecb8c4..8b363c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5814,4 +5814,12 @@ you can continue to support by using '$0 --with-pop'.])
esac
fi
-test "$MAKE" = make || AC_MSG_NOTICE([Now you can run '$MAKE'.])
+# Let plain 'make' work.
+test "$MAKE" = make || test -f makefile || cat >makefile <<EOF
+.POSIX:
+MAKE = $MAKE
+all:
+ \$(MAKE) -f Makefile \$?
+.DEFAULT:
+ \$(MAKE) -f Makefile \$<
+EOF
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 6fa8d3c: Let plain ‘make’ work even not GNU Make,
Paul Eggert <=