Split code as a package, compiled into an executable zip
[youtube-dl] / Makefile
index b1a41079a705f91fadddde8272266b3bc8e7f7c5..884aeb326871f0444e21245e8a2002f893857f31 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,9 @@ update-readme:
                echo "$${footer}" >> README.md
 
 compile:
-       cp youtube_dl/__init__.py youtube-dl
+       zip --junk-paths youtube-dl youtube_dl/*.py
+       echo '#!/usr/bin/env python' > youtube-dl
+       cat youtube-dl.zip >> youtube-dl
+       rm youtube-dl.zip
 
 .PHONY: default compile update update-latest update-readme