From 135ac0d6ae43b535f503dbe631429bd46902a0c4 Mon Sep 17 00:00:00 2001 From: Yu Ming Zhu Date: Thu, 10 Oct 2019 16:58:11 +0000 Subject: [PATCH] clean python compiled binaries for non *.py code fixes: #1698 --- builder/Makefile | 2 +- cli/Makefile | 2 +- util/Makefile | 1 + vm/Makefile | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/builder/Makefile b/builder/Makefile index 1de0a9cd..da56c47f 100644 --- a/builder/Makefile +++ b/builder/Makefile @@ -7,7 +7,7 @@ _default: @echo "nothing to make. try make install" clean: - rm -f *.o *.so *.pyc *~ + rm -f *.o *.so *.pyc *~ kojidc _install: diff --git a/cli/Makefile b/cli/Makefile index fea4906b..605c9eac 100644 --- a/cli/Makefile +++ b/cli/Makefile @@ -12,7 +12,7 @@ _default: @echo "nothing to make. try make install" clean: - rm -f *.o *.so *.pyc *~ + rm -f *.o *.so *.pyc *~ kojic install: @if [ "$(DESTDIR)" = "" ]; then \ diff --git a/util/Makefile b/util/Makefile index c1bcdcb7..3310b513 100644 --- a/util/Makefile +++ b/util/Makefile @@ -7,6 +7,7 @@ _default: clean: rm -f *.o *.so *.pyc *~ + for b in $(BINFILES); do rm -f $${b}c; done _install: @if [ "$(DESTDIR)" = "" ]; then \ diff --git a/vm/Makefile b/vm/Makefile index 13e340cb..4916199a 100644 --- a/vm/Makefile +++ b/vm/Makefile @@ -7,7 +7,7 @@ _default: @echo "nothing to make. try make install" clean: - rm -f *.o *.so *.pyc *~ kojikamid + rm -f *.o *.so *.pyc *~ kojikamid kojikamidc kojivmdc kojikamid: kojikamid.py bash fix_kojikamid.sh >kojikamid