From f4e68221de42ddf960b321cf308b9fbae9aefb09 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 6 Feb 2015 18:37:59 -0500 Subject: [PATCH] FS-7245: don't rebuild core on mod_foo-clean targets --- Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 96e9181646..8f681a58e5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -57,7 +57,11 @@ MY_DEFAULT_ARGS= --build=$(build) --host=$(host) --target=$(target) --prefix="$( if test "$$target" = "install"; then \ $(MAKE) $(AM_MAKEFLAGS) core_install && cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@ ; \ else \ - $(MAKE) $(AM_MAKEFLAGS) core && cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@ ;\ + if test "$$target" = "clean"; then \ + cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@ ;\ + else \ + $(MAKE) $(AM_MAKEFLAGS) core && cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@ ;\ + fi; \ fi; \ fi; fi