[tor-commits] [flashproxy/master] When I "make dist" I want it always to delete the dist directory.

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


commit 3c748dd25809d7952ab8662ead76d60c6cda63f5
Author: David Fifield <david at bamsoftware.com>
Date:   Thu Jul 5 07:19:30 2012 -0700

    When I "make dist" I want it always to delete the dist directory.
    
    "make sign" should remake the dist only if necessary.
---
 Makefile |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index f3232aa..5981bd2 100644
--- a/Makefile
+++ b/Makefile
@@ -22,13 +22,14 @@ test:
 
 DISTNAME = flashproxy-client-$(VERSION)
 DISTDIR = dist/$(DISTNAME)
-dist/$(DISTNAME).zip:
+dist:
 	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
+dist/$(DISTNAME).zip:
+	$(MAKE) dist
 
 sign: dist/$(DISTNAME).zip
 	cd dist && gpg --sign --detach-sign --armor $(DISTNAME).zip





More information about the tor-commits mailing list