all: setres

setres.zip: __main__.py get.py set.py
	zip $@ $^

setres: setres.zip
	echo '#!/usr/bin/python3' > $@
	cat setres.zip >> $@
	chmod a+x $@

clean:
	-rm -r *.zip *.pyc __pycache__/ *~

reallyclean: clean
	-rm setres

.PHONY: all clean reallyclean