Mercurial > hg > octave-lyh > gnulib-hg
changeset 9868:08a08aff8218
Make GNU make output nicer.
* top/GNUmakefile [!_have-Makefile]: Add dependency on
MAKECMDGOALS to enforce message for all command line targets. Set
srcdir for use in maint.mk.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Thu, 03 Apr 2008 14:03:49 -0600 |
parents | baefde832926 |
children | ea0eb05ec88d |
files | ChangeLog top/GNUmakefile |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-04-03 Eric Blake <ebb9@byu.net> + Make GNU make output nicer. + * top/GNUmakefile [!_have-Makefile]: Add dependency on + MAKECMDGOALS to enforce message for all command line targets. Set + srcdir for use in maint.mk. + Another maintainer tweak. * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as a target that regenerates version.
--- a/top/GNUmakefile +++ b/top/GNUmakefile @@ -68,11 +68,16 @@ else .DEFAULT_GOAL := abort-due-to-no-makefile +srcdir = . # The package can override .DEFAULT_GOAL to run actions like autoreconf. -include ./cfg.mk include ./maint.mk +ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile) +$(MAKECMDGOALS): abort-due-to-no-makefile +endif + abort-due-to-no-makefile: @echo There seems to be no Makefile in this directory. 1>&2 @echo "You must run ./configure before running \`make'." 1>&2