Commit 6322d6f7 authored by Adam Wujek's avatar Adam Wujek 💬

demos: trigger make defconfig if .config is not present

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent b63b2c53
......@@ -10,8 +10,13 @@ modules: TARGET = modules
install: TARGET = install
modules_install: TARGET = modules_install
$(DIRS):
DOT-CONFIGS = $(addsuffix /.config,$(DIRS))
$(DIRS): $(DOT-CONFIGS)
$(MAKE) -C $@ $(TARGET)
$(DOT-CONFIGS):
$(MAKE) -C $(@D) defconfig
.PHONY: all clean cleanall modules install modules_install
.PHONY: $(DIRS)
......@@ -10,8 +10,13 @@ modules: TARGET = modules
install: TARGET = install
modules_install: TARGET = modules_install
$(DIRS):
DOT-CONFIGS = $(addsuffix /.config,$(DIRS))
$(DIRS): $(DOT-CONFIGS)
$(MAKE) -C $@ $(TARGET)
$(DOT-CONFIGS):
$(MAKE) -C $(@D) defconfig
.PHONY: all clean cleanall modules install modules_install
.PHONY: $(DIRS)
......@@ -10,8 +10,13 @@ modules: TARGET = modules
install: TARGET = install
modules_install: TARGET = modules_install
$(DIRS):
DOT-CONFIGS = $(addsuffix /.config,$(DIRS))
$(DIRS): $(DOT-CONFIGS)
$(MAKE) -C $@ $(TARGET)
$(DOT-CONFIGS):
$(MAKE) -C $(@D) defconfig
.PHONY: all clean cleanall modules install modules_install
.PHONY: $(DIRS)
......@@ -10,8 +10,13 @@ modules: TARGET = modules
install: TARGET = install
modules_install: TARGET = modules_install
$(DIRS):
DOT-CONFIGS = $(addsuffix /.config,$(DIRS))
$(DIRS): $(DOT-CONFIGS)
$(MAKE) -C $@ $(TARGET)
$(DOT-CONFIGS):
$(MAKE) -C $(@D) defconfig
.PHONY: all clean cleanall modules install modules_install
.PHONY: $(DIRS)
......@@ -3,6 +3,7 @@ DIRS := fw-01
DIRS += fw-02
DIRS += fw-03
all clean cleanall modules install modules_install: $(DIRS)
clean: TARGET = clean
......@@ -11,8 +12,13 @@ modules: TARGET = modules
install: TARGET = install
modules_install: TARGET = modules_install
$(DIRS):
DOT-CONFIGS = $(addsuffix /.config,$(DIRS))
$(DIRS): $(DOT-CONFIGS)
$(MAKE) -C $@ $(TARGET)
$(DOT-CONFIGS):
$(MAKE) -C $(@D) defconfig
.PHONY: all clean cleanall modules install modules_install
.PHONY: $(DIRS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment