summaryrefslogtreecommitdiff
path: root/top/GNUmakefile
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2008-04-03 14:03:49 -0600
committerEric Blake <ebb9@byu.net>2008-04-03 14:03:49 -0600
commit95002d80002acb26000b3c20a2e1a3db929628ae (patch)
treea5bbe488ce0c60fd7a87abde728bc1b464f51925 /top/GNUmakefile
parent4424b418b6a34ac7bb183beb14cd9d72aed60589 (diff)
downloadgnulib-95002d80002acb26000b3c20a2e1a3db929628ae.tar.gz
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>
Diffstat (limited to 'top/GNUmakefile')
-rw-r--r--top/GNUmakefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/top/GNUmakefile b/top/GNUmakefile
index 42d7d12b70..bba62438bc 100644
--- a/top/GNUmakefile
+++ b/top/GNUmakefile
@@ -68,11 +68,16 @@ endif
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