diff options
| author | Tony Garnock-Jones <tonygarnockjones@gmail.com> | 2010-03-23 08:17:51 -0700 |
|---|---|---|
| committer | Tony Garnock-Jones <tonygarnockjones@gmail.com> | 2010-03-23 08:17:51 -0700 |
| commit | b2de145777065528fa258cef162f44ae29d54d33 (patch) | |
| tree | 936f1abe9be2d68011510a636e9dff59f4636b4d /Makefile | |
| parent | 71f7e5bdc4938874a30927f06340a682e89761aa (diff) | |
| parent | 5418774c028b840f4d289a12add864f26e32b5b0 (diff) | |
| download | rabbitmq-server-git-b2de145777065528fa258cef162f44ae29d54d33.tar.gz | |
Merge bug22457 into default
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -246,4 +246,20 @@ install_dirs: mkdir -p $(SBIN_DIR) mkdir -p $(TARGET_DIR)/sbin +# Note that all targets which depend on clean must have clean in their +# name. Also any target that doesn't depend on clean should not have +# clean in its name, unless you know that you don't need any of the +# automatic dependency generation for that target (eg cleandb). + +# We want to load the dep file if *any* target *doesn't* contain +# "clean" - i.e. if removing all clean-like targets leaves something + +ifeq "$(MAKECMDGOALS)" "" +TESTABLEGOALS:=$(.DEFAULT_GOAL) +else +TESTABLEGOALS:=$(MAKECMDGOALS) +endif + +ifneq "$(strip $(patsubst clean%,,$(patsubst %clean,,$(TESTABLEGOALS))))" "" -include $(DEPS_FILE) +endif |
