forked from lrq3000/easytextract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (51 loc) · 1.51 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# IMPORTANT: for compatibility with `python setup.py make [alias]`, ensure:
# 1. Every alias is preceded by @[+]make (eg: @make alias)
# 2. A maximum of one @make alias or command per line
#
# Sample makefile compatible with `python setup.py make`:
#```
#all:
# @make test
# @make install
#test:
# nosetest
#install:
# python setup.py install
#```
help:
@python setup.py make
distclean:
@+make coverclean
@+make prebuildclean
@+make clean
prebuildclean:
@+python -c "import shutil; shutil.rmtree('build', True)"
@+python -c "import shutil; shutil.rmtree('dist', True)"
@+python -c "import shutil; shutil.rmtree('easytextract.egg-info', True)"
coverclean:
@+python -c "import os; os.remove('.coverage') if os.path.exists('.coverage') else None"
clean:
@+python -c "import os; import glob; [os.remove(i) for i in glob.glob('*.py[co]')]"
@+python -c "import os; import glob; [os.remove(i) for i in glob.glob('easytextract/*.py[co]')]"
@+python -c "import os; import glob; [os.remove(i) for i in glob.glob('easytextract/tests/*.py[co]')]"
@+python -c "import os; import glob; [os.remove(i) for i in glob.glob('easytextract/examples/*.py[co]')]"
installdev:
python setup.py develop --uninstall
python setup.py develop
install:
python setup.py install
build:
@make prebuildclean
python setup.py sdist --formats=gztar,zip bdist_wheel
python setup.py bdist_wininst
pypimeta:
python setup.py register
pypi:
twine upload dist/*
buildupload:
@make testsetup
@make build
@make pypimeta
@make pypi
none:
# used for unit testing