diff options
author | Matthew Sackman <matthew@lshift.net> | 2010-03-23 11:23:55 +0000 |
---|---|---|
committer | Matthew Sackman <matthew@lshift.net> | 2010-03-23 11:23:55 +0000 |
commit | 7cdcee25bca9c548daf3873a74436353d66101bb (patch) | |
tree | 4d29ce69ab97cf005a6966d84c8d19e89885bc6d | |
parent | 9f471584afc3cf312529d9b0682609162e179d7d (diff) | |
download | rabbitmq-server-bug22457.tar.gz |
Correct logic so that a 'make' with no explicit goals still behaves correctlybug22457
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -253,6 +253,13 @@ install_dirs: # We want to load the dep file if *any* target *doesn't* contain # "clean" - i.e. if removing all clean-like targets leaves something -ifneq "$(strip $(patsubst clean%,,$(patsubst %clean,,$(MAKECMDGOALS))))" "" + +ifeq "$(MAKECMDGOALS)" "" +TESTABLEGOALS:=$(.DEFAULT_GOAL) +else +TESTABLEGOALS:=$(MAKECMDGOALS) +endif + +ifneq "$(strip $(patsubst clean%,,$(patsubst %clean,,$(TESTABLEGOALS))))" "" -include $(DEPS_FILE) endif |