Add include_mk template which makes it a bit more convienient to include package
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 24 Feb 2010 23:07:56 +0000 (23:07 +0000)
committerLars-Peter Clausen <lars@metafoo.de>
Wed, 24 Feb 2010 23:07:56 +0000 (23:07 +0000)
installed mk files.

SVN-Revision: 19847

rules.mk

index 3473b21..74be471 100644 (file)
--- 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)))