Fix cleaning of Python runme.py scripts for in-source-tree builds
This commit is contained in:
parent
eb61c85e5f
commit
b8026cc02f
2 changed files with 2 additions and 2 deletions
|
|
@ -402,7 +402,7 @@ python_clean:
|
|||
rm -f *.@OBJEXT@ *@SO@ *@PYTHON_SO@
|
||||
rm -f $(TARGET).py
|
||||
if test -f $(SRCDIR)$(RUNME).py; then rm -f $(RUNME)3.py $(RUNME)3.py.bak; fi
|
||||
if test "x$(SRCDIR)" != x; then rm -f $(RUNME).py; fi
|
||||
case "x$(SRCDIR)" in x|x./);; *) rm -f $(RUNME).py;; esac
|
||||
|
||||
|
||||
##################################################################
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ endif
|
|||
%.clean:
|
||||
@rm -f $*.py
|
||||
@if test -f $(srcdir)/$(py2_runme); then rm -f $(SCRIPTDIR)/$(py3_runme) $(SCRIPTDIR)/$(py3_runme).bak; fi
|
||||
@if test "x$(SRCDIR)" != x; then rm -f $(SCRIPTDIR)/$(py2_runme); fi
|
||||
@if test "x$(SCRIPTDIR)" != "x$(srcdir)"; then rm -f $(SCRIPTDIR)/$(py2_runme); fi
|
||||
|
||||
clean:
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile SRCDIR="$(SRCDIR)" python_clean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue