1 2.PHONY: build dist 3 4PYTHON=/usr/bin/python3 5TEST= 6PARAMETERS= 7 8build: 9 ${PYTHON} setup.py build ${PARAMETERS} 10 11buildext: 12 ${PYTHON} setup.py --with-libyaml build ${PARAMETERS} 13 14force: 15 ${PYTHON} setup.py build -f ${PARAMETERS} 16 17forceext: 18 ${PYTHON} setup.py --with-libyaml build -f ${PARAMETERS} 19 20install: 21 ${PYTHON} setup.py install ${PARAMETERS} 22 23installext: 24 ${PYTHON} setup.py --with-libyaml install ${PARAMETERS} 25 26test: build 27 ${PYTHON} tests/lib/test_build.py ${TEST} 28 29testext: buildext 30 ${PYTHON} tests/lib/test_build_ext.py ${TEST} 31 32testall: 33 ${PYTHON} setup.py test 34 35dist: 36 @# No longer uploading a zip file to pypi 37 @# ${PYTHON} setup.py --with-libyaml sdist --formats=zip,gztar 38 ${PYTHON} setup.py --with-libyaml sdist --formats=gztar 39 40windist: 41 ${PYTHON} setup.py --with-libyaml bdist_wininst 42 43clean: 44 ${PYTHON} setup.py --with-libyaml clean -a 45 rm -fr \ 46 dist/ \ 47 lib/PyYAML.egg-info/ \ 48 lib/yaml/__pycache__/ \ 49 tests/lib/__pycache__/ \ 50 yaml/_yaml.c \ 51 52