Permalink
Browse files

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

  • Loading branch information...
1 parent eb61c85 commit b8026cc02f6b7639afd83cbd4e0419963d8c9428 @kwwette kwwette committed May 29, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 Examples/Makefile.in
  2. +1 −1 Examples/test-suite/python/Makefile.in
View
@@ -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

0 comments on commit b8026cc

Please sign in to comment.