#Makefile: Wheel, release and executable zipfile creation
	python setup.py sdist bdist_wheel
	
pub: BINFILES/youtube-dl.deb BINFILES/youtube-dl.tar.gz pypi-files
	mv BINFILES/youtube-dl.tar.gz BINFILES/youtube_dl-`devscripts/version.sh -r`.tar.gz
	mv BINFILES/youtube-dl.deb BINFILES/youtube_dl-`devscripts/version.sh -r`.deb
	
libu2d: youtube_dl/*.py youtube_dl/*/*.py

youtube-dl.py: libu2d
	./zipEXE.sh
	echo '#!$(PYTHON)' > youtube-dl.py
	echo -n '#' >> youtube-dl.py
	sha256sum youtube-dl.zip >> youtube-dl.py
	cat youtube-dl.zip >> youtube-dl.py
	rm youtube-dl.zip
	chmod a+x youtube-dl.py

README.md: libu2d