diff options
| author | Alexandru Ardelean <ardeleanalex@gmail.com> | 2016-11-04 10:35:03 +0200 |
|---|---|---|
| committer | Alexandru Ardelean <ardeleanalex@gmail.com> | 2016-11-07 09:27:20 +0200 |
| commit | 45bdb70e1ed411f24aae4624563d682a372f287c (patch) | |
| tree | 15f85ccb4a1e3da0e91bf58b0a1269343a0a7198 /lang/python/files/python-host.mk | |
| parent | fa76db66ef6947c34d0b34dc6aed73b11dc11803 (diff) | |
python: add include guard for python-host.mk and include in Makefile
So that it can be included twice.
python-package.mk include python-host.mk, but at some point
in time python-host.mk is not exported to staging_dir yet.
So, to have in python's Makefile, we need to include it
in the Makefile, and to prevent double inclusion (if
python-host.mk is exported from a previous build), the
include guard is added.
Also, moved the includes after some vars were set.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/files/python-host.mk')
| -rw-r--r-- | lang/python/files/python-host.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/python/files/python-host.mk b/lang/python/files/python-host.mk index 0a5eb4193..da24f3dc1 100644 --- a/lang/python/files/python-host.mk +++ b/lang/python/files/python-host.mk @@ -5,6 +5,9 @@ # See /LICENSE for more information. # +ifneq ($(__python_host_mk_inc),1) +__python_host_mk_inc=1 + # Compatibility fallback for older OpenWrt and LEDE versions ifeq ($(STAGING_DIR_HOSTPKG),) $(warning STAGING_DIR_HOSTPKG is unset - falling back to $$(STAGING_DIR)/host) @@ -71,3 +74,4 @@ define Build/Compile/HostPyMod $(3)) endef +endif # __python_host_mk_inc |
