[tor-commits] [flashproxy/master] Add "make dist" for a zip package.

dcf at torproject.org dcf at torproject.org
Thu Jul 5 14:00:46 UTC 2012


commit 6227b49d097f300686844d6a2761333bedef11b5
Author: David Fifield <david at bamsoftware.com>
Date:   Thu Jul 5 05:30:17 2012 -0700

    Add "make dist" for a zip package.
---
 Makefile |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 3b30d61..0becb59 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
 PREFIX = /usr/local
 BINDIR = $(PREFIX)/bin
 
+VERSION = 0.0
+
+CLIENT_DIST_FILES = flashproxy-client.py flashproxy-reg-http.py README
+
 all:
 	:
 
@@ -10,9 +14,20 @@ install:
 
 clean:
 	rm -f *.pyc
+	rm -rf dist
 
 test:
 	./flashproxy-client-test.py
 	./flashproxy-test.js
 
-.PHONY: all clean test
+DISTNAME = flashproxy-client-$(VERSION)
+DISTDIR = dist/$(DISTNAME)
+dist/$(DISTNAME).zip:
+	rm -rf dist
+	mkdir -p $(DISTDIR)
+	cp -f $(CLIENT_DIST_FILES) $(DISTDIR)
+	cd dist && zip -q -r -9 $(DISTNAME).zip $(DISTNAME)
+
+dist: dist/$(DISTNAME).zip
+
+.PHONY: all clean test dist





More information about the tor-commits mailing list