Commit 6fa8d3c8 authored by Paul Eggert's avatar Paul Eggert

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).
parent 7cc66173
Pipeline #1417 passed with stage
in 50 minutes and 10 seconds
...@@ -869,7 +869,7 @@ top_bootclean=\ ...@@ -869,7 +869,7 @@ top_bootclean=\
top_distclean=\ top_distclean=\
${top_bootclean}; \ ${top_bootclean}; \
rm -f config.status config.log~ \ 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 distclean_dirs = $(clean_dirs) leim lisp
......
...@@ -5814,4 +5814,12 @@ you can continue to support by using '$0 --with-pop'.]) ...@@ -5814,4 +5814,12 @@ you can continue to support by using '$0 --with-pop'.])
esac esac
fi 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment