SO = build/lib.linux-x86_64-3.7/bignum.cpython-37m-x86_64-linux-gnu.so

$(SO): bignum.c setup.py Makefile
	python3 setup.py install --user

test:
	python3 test.py

update: clean
	rm -f bignum.tar.gz
	cd .. && tar cf - --exclude="NEW*" bignum | gzip > bignum.tar.gz
	mv ../bignum.tar.gz .
	find . -cnewer NEW -print | cpio -o | ssh fog.misty.com "cd src/python/bignum && cpio -ivdm"
	mv NEW NEW.OLD
	touch NEW

clean:
	rm -rf build
