From 1c858a7dfebd4e4092eb55802400b0c405829cc3 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Wed, 30 Jan 2013 16:30:19 +0100 Subject: [PATCH] mk: in install rule, don't overwrite .config if it already exists This allows the user to prepare a configuration with make config before using make install. Signed-off-by: Olivier Matz Acked-by: Thomas Monjalon --- mk/rte.sdkinstall.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index 00cb616bf1..61a877187f 100644 --- a/mk/rte.sdkinstall.mk +++ b/mk/rte.sdkinstall.mk @@ -56,7 +56,9 @@ install: $(INSTALL_TARGETS) %_install: @echo ================== Installing $* - $(Q)$(MAKE) config T=$* O=$(BUILD_DIR)/$* + $(Q)if [ ! -f $(BUILD_DIR)/$*/.config ]; then \ + $(MAKE) config T=$* O=$(BUILD_DIR)/$*; \ + fi $(Q)$(MAKE) all O=$(BUILD_DIR)/$* # -- 2.20.1