
all: 
	python2.7 setup.py build_ext --inplace

upload: all
	python setup.py register sdist upload

#sdist: all
#	python setup.py sdist && rsync -avz dist/opendr-0.5.tar.gz files:~/opendr/latest.tgz

clean:
	rm -rf `find . -name \*.pyc` `find . -name \*~` build/ dist/; make -C contexts clean

realclean: clean
	rm -rf contexts/OSMesa; rm -rf contexts/OSMesa.*.zip

test: all
	env LD_PRELOAD=$(PRELOADED) python -m unittest discover


