瀏覽代碼

Add include_mk template which makes it a bit more convienient to include package installed mk files.

SVN-Revision: 19847
Lars-Peter Clausen 15 年之前
父節點
當前提交
001736d848
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      rules.mk

+ 4 - 0
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)))