summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2013-01-30 16:30:19 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-01-15 18:08:43 +0100
commit7570f36e6f7c7cb743536d40ac067ec754672868 (patch)
treecf81713a0c123f708e1e29df1fe32c09fc4c1d2f /mk
parent8dde522c7b53df82ac5e08dd1dc3a7a52619b363 (diff)
downloaddpdk-7570f36e6f7c7cb743536d40ac067ec754672868.zip
dpdk-7570f36e6f7c7cb743536d40ac067ec754672868.tar.gz
dpdk-7570f36e6f7c7cb743536d40ac067ec754672868.tar.xz
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 <olivier.matz@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/rte.sdkinstall.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk
index 66e8568..082a3f6 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)/$*
#