From 31fd69fbcfd4abcd04d5706db92d30b5a16765fb Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Fri, 1 Dec 2017 02:54:21 +0200 Subject: [PATCH] Update Makefile --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 52257b04..aac5cbce 100644 --- a/Makefile +++ b/Makefile @@ -2,18 +2,18 @@ VENV_NAME := venv PYTHON := $(VENV_NAME)/bin/python AIOGRAM_VERSION := $(shell $(PYTHON) -c "import aiogram;print(aiogram.__version__)") +RM := rm -rf + mkvenv: virtualenv $(VENV_NAME) $(PYTHON) -m pip install -r requirements.txt clean: - find . -name '*.pyc' -exec rm --force {} + - find . -name '*.pyo' -exec rm --force {} + - find . -name '*~' -exec rm --force {} + - rm --force --recursive build/ - rm --force --recursive dist/ - rm --force --recursive .tox/ - rm --force --recursive *.egg-info + find . -name '*.pyc' -exec $(RM) {} + + find . -name '*.pyo' -exec $(RM) {} + + find . -name '*~' -exec $(RM) {} + + find . -name '__pycache__' -exec $(RM) {} + + $(RM) build/ dist/ docs/build/ .tox/ .cache/ *.egg-info tag: @echo "Add tag: '$(AIOGRAM_VERSION)'"