[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 3c748dd25809d7952ab8662ead76d60c6cda63f5
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits