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>
%_install:
@echo ================== Installing $*
%_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)/$*
#
$(Q)$(MAKE) all O=$(BUILD_DIR)/$*
#