
SHELL   := /bin/bash 

.PHONY: zip wiki

zip:
	zip export_gif.zip export_gif.py export_gif.inx export_gif.svg saveas_gif.inx pmd2inks LICENSE svgelements.py
	gpg --yes --default-key 15EA8459B4448BEF4EA9C45E6A12374187A40D51 -b -a -o export_gif.zip.sig -s export_gif.zip

	zip animate_yo.zip animate_yo.py animate_yo.inx animate_yo.svg
	sha384sum animate_yo.zip > animate_yo.zip.sha384
	
inx:
	./pmd2inks export_gif.py | xmllint -format - > export_gif.inx
	./pmd2inks animate_yo.py | xmllint -format - > animate_yo.inx

deb:
	xpm -s src -t deb --deb-sign incl -n inkscape-export-gif --prefix /usr/share/inkscape/extensions -f export_gif.py

pylint:
	PYTHONPATH=/usr/share/inkscape/extensions/ pylint export_gif.py animate_yo.py

wiki:
	fw inkscape

