Fix cleaning of Python runme.py scripts for in-source-tree builds

This commit is contained in:
Karl Wette 2014-05-29 14:35:23 +02:00
commit b8026cc02f
2 changed files with 2 additions and 2 deletions

View file

@ -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
##################################################################

View file

@ -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