aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-08-26 09:53:25 +0200
committerKarel Kočí <cynerd@email.cz>2015-08-26 10:13:40 +0200
commit0688647f2f69d1bee1ecc76338190e6a12209da5 (patch)
treeb92d6dce0f36c637b071a0f4fe957e724d330d66 /Makefile
parentaa7d9d6d93c1489e3136f8ad2fb88d32f16a2496 (diff)
downloadlinux-conf-perf-0688647f2f69d1bee1ecc76338190e6a12209da5.tar.gz
linux-conf-perf-0688647f2f69d1bee1ecc76338190e6a12209da5.tar.bz2
linux-conf-perf-0688647f2f69d1bee1ecc76338190e6a12209da5.zip
Add dependency to .conf.mk on .target in Makefile
If .target file is changed (=target changed), makefile configuration should been regenerated.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d1bba9a..54c4236 100644
--- a/Makefile
+++ b/Makefile
@@ -99,9 +99,12 @@ distclean_buildroot:
#######################################
-.conf.mk: conf.py
+.conf.mk: conf.py .target
scripts/confmk.py
+.target:
+ $(error Please select target by writing it to .target file)
+
parse_kconfig:
@if [ `$(MAKE) -C scripts/parse_kconfig/ -q; echo $$?` != "0" ]; then \
$(MAKE) -C scripts/parse_kconfig/; fi