you-get/Makefile

48 lines
788 B
Makefile
Raw Normal View History

SETUP = python3 setup.py
2012-12-09 21:05:04 +04:00
2015-10-23 02:53:42 +03:00
.PHONY: default i test clean all html rst build sdist bdist bdist_egg bdist_wheel install release
2012-12-09 21:05:04 +04:00
2013-02-15 05:25:12 +04:00
default: i
i:
2014-09-21 08:57:15 +04:00
@(cd src/; python3 -i -c 'import you_get; print("You-Get %s\n>>> import you_get" % you_get.version.__version__)')
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
2014-07-21 01:41:54 +04:00
find . | grep .pyc | xargs rm -f
2012-08-31 19:20:38 +04:00
2015-10-23 02:53:42 +03:00
all: build sdist bdist bdist_egg bdist_wheel
2014-09-21 08:57:15 +04:00
html:
pandoc README.md > README.html
rst:
pandoc -s -t rst README.md > README.rst
2013-02-15 05:25:12 +04:00
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
2014-09-21 08:57:15 +04:00
bdist_wheel:
$(SETUP) bdist_wheel
install:
2014-09-21 08:57:15 +04:00
$(SETUP) install
2012-09-01 02:55:45 +04:00
2015-10-23 02:53:42 +03:00
release:
2012-12-09 21:05:04 +04:00
zenity --question
2014-09-21 09:09:49 +04:00
$(SETUP) sdist bdist_wheel upload --sign