Add include_mk template which makes it a bit more convienient to include package
[openwrt.git] / 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)))
 
This page took 0.023021 seconds and 4 git commands to generate.