aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-27 21:26:45 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-27 21:26:45 +0200
commitd1a4966163e2456e787d00ec3f1d290b5491b44f (patch)
treea890c32f3ad478a8cf15aeac6423d4a96bda77a1 /Makefile
parentbbfdeca6f7933ddc98b45975c1f05a2babe06daf (diff)
downloadlinux-conf-perf-d1a4966163e2456e787d00ec3f1d290b5491b44f.tar.gz
linux-conf-perf-d1a4966163e2456e787d00ec3f1d290b5491b44f.tar.bz2
linux-conf-perf-d1a4966163e2456e787d00ec3f1d290b5491b44f.zip
fix problems with initram
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) $@