mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
py-defs.mk: Fix clean target
pyc.clean was broken because it did rm -f __pycache__ (a directory) Also, add include guards. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
ce165ebaef
commit
9f0276ead5
1 changed files with 3 additions and 3 deletions
|
|
@ -74,8 +74,6 @@ export PYTHONPATH
|
||||||
#PY_MODULES ?= $(PY_PROJ_MODULES)
|
#PY_MODULES ?= $(PY_PROJ_MODULES)
|
||||||
#PY_PROJ_MODULES += $(dir $(wildcard $(PY_MODULE_DIRS)/*/__init__.py))
|
#PY_PROJ_MODULES += $(dir $(wildcard $(PY_MODULE_DIRS)/*/__init__.py))
|
||||||
|
|
||||||
PY_DEFS_MK_INCLUDED := true
|
|
||||||
|
|
||||||
ifneq ($(PY_DEFS_MK_INCLUDED),true)
|
ifneq ($(PY_DEFS_MK_INCLUDED),true)
|
||||||
all:
|
all:
|
||||||
clean: pyc.clean
|
clean: pyc.clean
|
||||||
|
|
@ -93,10 +91,12 @@ echo-py:
|
||||||
#@echo "PY_MODULE_DIRS = $(PY_MODULE_DIRS)"
|
#@echo "PY_MODULE_DIRS = $(PY_MODULE_DIRS)"
|
||||||
|
|
||||||
pyc.clean:
|
pyc.clean:
|
||||||
$(RM) -f $(wildcard *.pyc) __pycache__
|
$(RM) -rf $(wildcard *.pyc) __pycache__
|
||||||
libpath: py-libpath
|
libpath: py-libpath
|
||||||
py-libpath:
|
py-libpath:
|
||||||
@echo export PYTHONPATH=$(PYTHONPATH)
|
@echo export PYTHONPATH=$(PYTHONPATH)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
PY_DEFS_MK_INCLUDED := true
|
||||||
|
|
||||||
include $(JWBDIR)/make/ldlibpath.mk
|
include $(JWBDIR)/make/ldlibpath.mk
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue