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)
SVN-Revision: 19847

rules.mk

index 3473b212de4b6b4c1e054e435517c50b88117694..74be4713520dbb2052e32770bbb3029ffc9b98c6 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)))