py-defs.mk: Add multiple inclusion preventer

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-11-23 08:41:46 +00:00
commit 3dddce9817

View file

@ -35,6 +35,8 @@ PYTHONPATH ?= $(call proj_query, pythonpath $(PROJECT))
#PYTHONPATH = $(subst $(space),,$(ENV_PYTHONPATH)$(foreach d,$(PY_MODULE_DIRS),:$(d)))
export PYTHONPATH
PY_DEFS_MK_INCLUDED := true
ifneq ($(PY_DEFS_MK_INCLUDED),true)
all:
clean: pyc.clean
@ -53,6 +55,6 @@ pyc.clean:
libpath: py-libpath
py-libpath:
@echo export PYTHONPATH=$(PYTHONPATH)
endif
include $(MODDIR)/make/ldlibpath.mk