summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-02-24 23:07:56 +0000
committerlars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-02-24 23:07:56 +0000
commit89d4450236c2b433bde34dfd2a65c2ca8436255e (patch)
treebb7ebf880edcf94199a314293b1b0020eb969fa9
parent68e5672a7d43a81e7feec8b9191d6ee174ca24af (diff)
Add include_mk template which makes it a bit more convienient to include package
installed mk files. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19847 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--rules.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 3473b212de..74be471352 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)))