Makefile 1013 Bytes
Newer Older
1 2 3 4 5 6 7 8

all: clean compile sdist

clean:
	@echo Clean Python build dir...
	python2.7 setup.py clean --all
	@echo Clean Python distribution dir...
	@-rm -rf dist
ysard's avatar
ysard committed
9 10
	@-rm -rf *egg-info
	@-rm _cadbiom.so
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

compile:
	@echo Building the library...
	python2.7 setup.py build

sdist:
	@echo Building the distribution package...
	python2.7 setup.py sdist

install:
	@echo Install the package...
	python2.7 setup.py install --record files.txt

uninstall: files.txt
	@echo Uninstalling the package...
	cat files.txt | xargs rm -rf
	rm files.txt

29 30 31 32 33 34 35 36
dev_install:
	@echo Install the package for developers...
	python2.7 setup.py develop

dev_uninstall:
	@echo Uninstalling the package for developers...
	python2.7 setup.py develop --uninstall

37 38 39 40
unit_tests:
	@echo Launch unit tests
	python2.7 setup.py test

41 42 43 44 45 46
test_register:
	python2.7 setup.py register -r https://testpypi.python.org/pypi

test_install:
	python2.7 setup.py sdist upload -r https://testpypi.python.org/pypi
	pip2.7 install -U -i https://testpypi.python.org/pypi pycryptosat