Add files via upload
[PyWWW-Get.git] / Makefile
blob21b454a182eff153dcb74467fe70aa5a77850f64
1 #!/usr/bin/make -f
3 PREFIX?="/usr/local"
4 DESTDIR?="/"
5 MAKE?="/usr/bin/make"
6 PYTHON?="/usr/bin/python2"
7 SDIST?="zip,gztar,bztar"
8 BDIST?="zip,gztar,bztar"
9 SETUPPY?="setup.py"
10 DESTURL?="https://pypi.python.org/pypi"
12 .PHONY: all build clean install sdist register bdist upload check
14 all: clean build
16 build:
17 ${PYTHON} ${SETUPPY} build
19 clean:
20 ${PYTHON} ${SETUPPY} clean
22 install:
23 ${PYTHON} ${SETUPPY} install --prefix=${PREFIX} --root=${DESTDIR}
25 sdist:
26 ${PYTHON} ${SETUPPY} sdist --formats=${SDIST}
28 register:
29 ${PYTHON} ${SETUPPY} register
31 bdist:
32 ${PYTHON} ${SETUPPY} bdist --format=${SDIST}
34 upload:
35 ${PYTHON} ${SETUPPY} -r ${DESTURL}
37 check:
38 ${PYTHON} ${SETUPPY} -m