[dpdk-dev] [PATCH 2/3] mk: in install rule, don't overwrite .config if it already exists
Thomas Monjalon
thomas.monjalon at 6wind.com
Fri Jul 26 15:13:44 CEST 2013
From: Olivier Matz <olivier.matz at 6wind.com>
This allows the user to prepare a configuration with make config
before using make install.
Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
---
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 a280234..ee98981 100644
--- a/mk/rte.sdkinstall.mk
+++ b/mk/rte.sdkinstall.mk
@@ -57,7 +57,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)/$*
#
--
1.7.10.4
More information about the dev
mailing list