Message ID | 20121013231432.17317.13596.stgit@localhost |
---|---|
State | RFC |
Headers | show |
diff --git a/Makefile b/Makefile index cbaa0c4..1f42141 100644 --- a/Makefile +++ b/Makefile @@ -544,8 +544,24 @@ show-targets: else # ifeq ($(BR2_HAVE_DOT_CONFIG),y) +ifneq ($(PROJECT_DIR),) +ifeq ($(DEFCONFIG),) +DEFCONFIG = $(wildcard $(PROJECT_DIR)/buildroot.config) +endif +endif + +ifeq ($(DEFCONFIG),) + all: menuconfig +else # ifeq ($(DEFCONFIG),) + +# Re-run make if necessary +all world: defconfig + $(MAKE) $(EXTRAMAKEARGS) $@ + +endif # ifeq ($(DEFCONFIG),) + endif # ifeq ($(BR2_HAVE_DOT_CONFIG),y) # configuration