summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2013-01-30 16:30:19 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-09-17 14:16:11 +0200
commit99225b4f9c25c253fcc9aabb8ab6646436ed9165 (patch)
tree7af8ec7b7a3edd08c93e5ccffb75fed3f89c24d2
parent54c78a5ea390a125ce7ad12ad8610e386a36ecef (diff)
downloaddpdk-99225b4f9c25c253fcc9aabb8ab6646436ed9165.zip
dpdk-99225b4f9c25c253fcc9aabb8ab6646436ed9165.tar.gz
dpdk-99225b4f9c25c253fcc9aabb8ab6646436ed9165.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>
-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 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)/$*
#