From 6587c440025bf9642d7712b078b2def6d5445b11 Mon Sep 17 00:00:00 2001 From: Yu Ming Zhu Date: Oct 16 2019 12:45:19 +0000 Subject: clean python compiled binaries for non *.py code fixes: #1698 --- diff --git a/builder/Makefile b/builder/Makefile index 1de0a9c..da56c47 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 fea4906..605c9ea 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 b4c861b..2b4953e 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 13e340c..4916199 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