summaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2010-02-24 23:07:56 +0000
committerLars-Peter Clausen <lars@metafoo.de>2010-02-24 23:07:56 +0000
commit001736d84888e2fc0c682c6cb36a4ec6fb9096f6 (patch)
tree7d096547f1596a805816fedf8a9091aa0e62b904 /rules.mk
parent9156e19ac0ab362e522567f5638f8b695822bd23 (diff)
downloadmtk-20170518-001736d84888e2fc0c682c6cb36a4ec6fb9096f6.zip
mtk-20170518-001736d84888e2fc0c682c6cb36a4ec6fb9096f6.tar.gz
mtk-20170518-001736d84888e2fc0c682c6cb36a4ec6fb9096f6.tar.bz2
Add include_mk template which makes it a bit more convienient to include package installed mk files.
SVN-Revision: 19847
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 3473b21..74be471 100644
--- a/rules.mk
+++ b/rules.mk
@@ -220,6 +220,10 @@ $(call shvar,$(1))=$$(call $(1))
export $(call shvar,$(1))
endef
+define include_mk
+$(eval -include $(if $(DUMP),,$(STAGING_DIR)/mk/$(strip $(1))))
+endef
+
# file extension
ext=$(word $(words $(subst ., ,$(1))),$(subst ., ,$(1)))