mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
update Makefile
This commit is contained in:
parent
7bfd9dff7b
commit
64bc62c1c4
24
Makefile
24
Makefile
@ -1,22 +1,29 @@
|
|||||||
SETUP = python3 setup.py
|
SETUP = python3 setup.py
|
||||||
|
|
||||||
.PHONY: default clean build sdist bdist bdist_egg install release
|
.PHONY: default i test clean all html rst build sdist bdist bdist_egg bdist_wheel install rst release
|
||||||
|
|
||||||
default: i
|
default: i
|
||||||
|
|
||||||
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__))')
|
@(cd src/; python3 -i -c 'import you_get; print("You-Get %s\n>>> import you_get" % you_get.version.__version__)')
|
||||||
|
|
||||||
test:
|
test:
|
||||||
$(SETUP) test
|
$(SETUP) test
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
zenity --question
|
zenity --question
|
||||||
|
rm -f README.rst
|
||||||
rm -fr build/ dist/ src/*.egg-info/
|
rm -fr build/ dist/ src/*.egg-info/
|
||||||
find . | grep __pycache__ | xargs rm -fr
|
find . | grep __pycache__ | xargs rm -fr
|
||||||
find . | grep .pyc | xargs rm -f
|
find . | grep .pyc | xargs rm -f
|
||||||
|
|
||||||
all: build sdist bdist bdist_egg
|
all: rst build sdist bdist bdist_egg bdist_wheel
|
||||||
|
|
||||||
|
html:
|
||||||
|
pandoc README.md > README.html
|
||||||
|
|
||||||
|
rst:
|
||||||
|
pandoc -s -t rst README.md > README.rst
|
||||||
|
|
||||||
build:
|
build:
|
||||||
$(SETUP) build
|
$(SETUP) build
|
||||||
@ -30,9 +37,12 @@ bdist:
|
|||||||
bdist_egg:
|
bdist_egg:
|
||||||
$(SETUP) bdist_egg
|
$(SETUP) bdist_egg
|
||||||
|
|
||||||
install: bdist_egg
|
bdist_wheel:
|
||||||
sudo $(SETUP) install
|
$(SETUP) bdist_wheel
|
||||||
|
|
||||||
release:
|
install: bdist_wheel
|
||||||
|
$(SETUP) install
|
||||||
|
|
||||||
|
release: rst
|
||||||
zenity --question
|
zenity --question
|
||||||
$(SETUP) sdist bdist_egg upload
|
$(SETUP) sdist bdist_wheel upload
|
||||||
|
Loading…
Reference in New Issue
Block a user