mirror of
https://gitee.com/openharmony/third_party_pyyaml
synced 2024-11-27 04:10:36 +00:00
45 lines
927 B
Makefile
45 lines
927 B
Makefile
|
|
.PHONY: default build buildext force forceext install installext test testext dist clean
|
|
|
|
PYTHON=/usr/bin/python
|
|
TEST=
|
|
PARAMETERS=
|
|
|
|
build:
|
|
${PYTHON} setup.py build ${PARAMETERS}
|
|
|
|
buildext:
|
|
${PYTHON} setup.py --with-libyaml build ${PARAMETERS}
|
|
|
|
force:
|
|
${PYTHON} setup.py build -f ${PARAMETERS}
|
|
|
|
forceext:
|
|
${PYTHON} setup.py --with-libyaml build -f ${PARAMETERS}
|
|
|
|
install:
|
|
${PYTHON} setup.py install ${PARAMETERS}
|
|
|
|
installext:
|
|
${PYTHON} setup.py --with-libyaml install ${PARAMETERS}
|
|
|
|
test: build
|
|
${PYTHON} tests/lib/test_build.py ${TEST}
|
|
|
|
testext: buildext
|
|
${PYTHON} tests/lib/test_build_ext.py ${TEST}
|
|
|
|
testall:
|
|
${PYTHON} setup.py test
|
|
|
|
dist:
|
|
@# No longer uploading a zip file to pypi
|
|
@# ${PYTHON} setup.py --with-libyaml sdist --formats=zip,gztar
|
|
${PYTHON} setup.py --with-libyaml sdist --formats=gztar
|
|
|
|
windist:
|
|
${PYTHON} setup.py --with-libyaml bdist_wininst
|
|
|
|
clean:
|
|
${PYTHON} setup.py --with-libyaml clean -a
|