From: Lars-Peter Clausen Date: Wed, 24 Feb 2010 23:07:56 +0000 (+0000) Subject: Add include_mk template which makes it a bit more convienient to include package... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=001736d84888e2fc0c682c6cb36a4ec6fb9096f6;p=openwrt%2Fstaging%2Fansuel.git Add include_mk template which makes it a bit more convienient to include package installed mk files. SVN-Revision: 19847 --- 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)))