you-get/Makefile

38 lines
610 B
Makefile
Raw Normal View History

2012-12-09 21:05:04 +04:00
SETUP = python3 setup.py
.PHONY: default clean build sdist bdist bdist_egg install release
2013-02-15 05:25:12 +04:00
default: i
i:
@(cd src/; python -i -c 'import you_get; print("You-Get %s (%s)\n>>> import you_get" % (you_get.__version__, you_get.__date__))')
2012-08-31 19:20:38 +04:00
2013-02-13 01:04:39 +04:00
test:
$(SETUP) test
2012-08-31 19:20:38 +04:00
clean:
2012-12-09 21:05:04 +04:00
zenity --question
2013-02-13 01:04:39 +04:00
rm -fr build/ dist/ src/*.egg-info/
2012-12-09 21:05:04 +04:00
find . | grep __pycache__ | xargs rm -fr
2012-08-31 19:20:38 +04:00
2013-02-15 05:25:12 +04:00
all: build sdist bdist bdist_egg
2012-08-31 19:20:38 +04:00
build:
2012-12-09 21:05:04 +04:00
$(SETUP) build
2012-08-31 19:20:38 +04:00
sdist:
2012-12-09 21:05:04 +04:00
$(SETUP) sdist
2012-08-31 19:20:38 +04:00
bdist:
2012-12-09 21:05:04 +04:00
$(SETUP) bdist
2012-08-31 19:20:38 +04:00
2012-09-01 02:55:45 +04:00
bdist_egg:
2012-12-09 21:05:04 +04:00
$(SETUP) bdist_egg
2012-09-01 02:55:45 +04:00
install: bdist_egg
2012-12-09 21:05:04 +04:00
sudo $(SETUP) install
2012-09-01 02:55:45 +04:00
2012-09-01 12:55:13 +04:00
release:
2012-12-09 21:05:04 +04:00
zenity --question
$(SETUP) sdist bdist_egg upload