Created
October 5, 2016 15:23
-
-
Save arteymix/1f0036122124abb56c9e055c6a8525ec to your computer and use it in GitHub Desktop.
Generate standalone Python zip archive for Meson tooling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TOOLS := meson mesonconf mesonintrospect wraptool | |
all: $(TOOLS) | |
%: %.py | |
cp meson.py __main__.py | |
zip $@.zip __main__.py mesonbuild/**/*.py | |
echo '#!/usr/bin/env python3' > $@ | |
cat $@.zip >> $@ | |
chmod +x $@ | |
rm __main__.py $@.zip | |
clean: $(TOOLS) | |
rm $^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment