mk: in install rule, don't overwrite .config if it already exists
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 30 Jan 2013 15:30:19 +0000 (16:30 +0100)
committerDavid Marchand <david.marchand@6wind.com>
Wed, 26 Feb 2014 10:01:13 +0000 (11:01 +0100)
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>
mk/rte.sdkinstall.mk

index 00cb616..61a8771 100644 (file)
@@ -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)/$*
 
 #