Skip to content

Commit

Permalink
simpler cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tedivm committed Feb 25, 2018
1 parent 4342e84 commit 8927d86
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,11 @@ ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
all: dependencies

clean:
rm -rf $(ROOT_DIR)/*.pyc
# Remove existing environment
if [ -d $(ROOT_DIR)/env ]; then \
rm -rf $(ROOT_DIR)/env; \
fi;
if [ -d $(ROOT_DIR)/dist ]; then \
rm -rf $(ROOT_DIR)/dist; \
fi;
if [ -d $(ROOT_DIR)/build ]; then \
rm -rf $(ROOT_DIR)/build; \
fi;
if [ -d $(ROOT_DIR)/gitconsensus.egg-info ]; then \
rm -rf $(ROOT_DIR)/gitconsensus.egg-info; \
fi;
rm -rf $(ROOT_DIR)/gitconsensus/*.pyc
rm -rf $(ROOT_DIR)/env
rm -rf $(ROOT_DIR)/dist
rm -rf $(ROOT_DIR)/build
rm -rf $(ROOT_DIR)/*.egg-info

dependencies:
if [ ! -d $(ROOT_DIR)/env ]; then python3 -m venv $(ROOT_DIR)/env; fi
Expand Down

0 comments on commit 8927d86

Please sign in to comment.