aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1fee43d..3cc638d 100644
--- a/Makefile
+++ b/Makefile
@@ -55,6 +55,7 @@ clean:
@$(MAKE) -C scripts/write_config/ clean
$(RM) -r build
$(RM) -r scripts/buildroot/system/skeleton/usr/share/benchmark
+ $(RM) $(INITRAM)
distclean: clean distclean_linux distclean_buildroot
$(RM) .conf.mk
@@ -82,15 +83,18 @@ parse_kconfig:
write_config:
@$(MAKE) -C scripts/write_config/
-%:
+scripts/buildroot/system/skeleton/usr/share/%:
+ mkdir -p $@
+
+build:
mkdir -p $@
$(BUILDROOT_INITRAM): scripts/buildroot/.config
@$(MAKE) -C scripts/buildroot
-$(INITRAM): $(shell dirname $(INITRAM))
-$(INITRAM): $(BUILDROOT_INITRAM) $${@D}
- mv $^ $@
+$(INITRAM): build
+$(INITRAM): $(BUILDROOT_INITRAM)
+ mv $< $@
scripts/buildroot/.config:
cp $(BUILDROOT_DEF_CONFIG) $@