[flashproxy/master] Added exe target to makefile.

commit cd65471ebc555b072d01995fc9591e671f6d4248 Author: Alexandre Allaire <alexandre.allaire@mail.mcgill.ca> Date: Thu Nov 15 16:42:04 2012 -0500 Added exe target to makefile. Added make exe target that bundles client programs and an interpreter for deployment. It should work on Cygwin. It assumes flashproxy dependencies (OpenSSL, M2Crypto..) and pyinstaller are already installed. --- Makefile | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index a4682cd..c195ece 100644 --- a/Makefile +++ b/Makefile @@ -49,4 +49,16 @@ sign: dist/$(DISTNAME).zip cd dist && gpg --sign --detach-sign --armor $(DISTNAME).zip cd dist && gpg --verify $(DISTNAME).zip.asc $(DISTNAME).zip -.PHONY: all install clean test dist sign +exe: $(CLIENT_BIN) + rm -Rf $(DISTDIR) + mkdir -p $(DISTDIR) + for file in $(CLIENT_BIN); \ + do \ + python $(PYINSTALLER_PATH) --onedir $$file; \ + cp -Rf dist/$$file/* $(DISTDIR); \ + $$(cygpath -aw $$(which pyinstaller.py)); \ + rm -Rf dist/$$file; \ + done + mv $(DISTDIR)/M2Crypto.__m2crypto.pyd $(DISTDIR)/__m2crypto.pyd + +.PHONY: all install clean test dist sign exe
participants (1)
-
dcf@torproject.org