remake: behave better with non-GNU make in subdirectories
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 29 May 2011 13:24:58 +0000 (15:24 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 30 May 2011 21:37:19 +0000 (23:37 +0200)
commitbee9871d6a8743b7f01789f196c214354e7f612a
treef384e771e8679f14a4eca0bfad2886550535c1a1
parent82fc4d353ce941f09f16738a31fb8958d0320be2
remake: behave better with non-GNU make in subdirectories

Currently, with every decent make program, it is possible to
rebuild out-of-date autotools-generated files with a simple
"make Makefile" -- but for this to work reliably with non-GNU
make implementations, the command must be issued from the
top-level directory.  This patch removes such limitation.

* lib/am/configure.am (am--refresh): Depend on `%MAKEFILE%'.
* tests/defs.in (using_gmake): New function, backported from the
`master' branch (and simplified).
* tests/remake-subdir.test: New test.
* tests/remake-subdir2.test: Likewise.
* tests/remake-subdir-gnu.test: Likewise.
* tests/remake-subdir-from-subdir.test: Likewise.
* tests/Makefile.am (TESTS): Update.
ChangeLog
Makefile.in
lib/am/configure.am
tests/Makefile.am
tests/Makefile.in
tests/defs.in
tests/remake-subdir-from-subdir.test [new file with mode: 0755]
tests/remake-subdir-gnu.test [new file with mode: 0755]
tests/remake-subdir.test [new file with mode: 0755]
tests/remake-subdir2.test [new file with mode: 0755]