From 1ca83e9908d7c8edb8cb64a2a9a8877f2efc98a0 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Sun, 9 Dec 2012 18:05:04 +0100 Subject: [PATCH] updated Makefile --- Makefile | 50 +++++++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/Makefile b/Makefile index 6b16825d..eaec6c69 100644 --- a/Makefile +++ b/Makefile @@ -1,25 +1,29 @@ -default: sdist bdist bdist_egg install - -clean: - rm -fr build/ dist/ *.egg-info/ - -build: - python3 setup.py build - -sdist: - python3 setup.py sdist - -bdist: - python3 setup.py bdist - -bdist_egg: - python3 setup.py bdist_egg - -install: bdist_egg - sudo python3 setup.py install - -release: - zenity --warning - python3 setup.py sdist bdist_egg upload +SETUP = python3 setup.py .PHONY: default clean build sdist bdist bdist_egg install release + +default: build sdist bdist bdist_egg + +clean: + zenity --question + rm -fr build/ dist/ *.egg-info/ + find . | grep __pycache__ | xargs rm -fr + +build: + $(SETUP) build + +sdist: + $(SETUP) sdist + +bdist: + $(SETUP) bdist + +bdist_egg: + $(SETUP) bdist_egg + +install: bdist_egg + sudo $(SETUP) install + +release: + zenity --question + $(SETUP) sdist bdist_egg upload