[tor-commits] [flashproxy/master] Add "make install" target to websocket-transport.

dcf at torproject.org dcf at torproject.org
Wed Jan 30 05:11:38 UTC 2013


commit 2b9df0fe490291bcdf6d8abb45f3812e6b334360
Author: David Fifield <david at bamsoftware.com>
Date:   Mon Nov 26 21:11:50 2012 -0800

    Add "make install" target to websocket-transport.
---
 websocket-transport/Makefile |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/websocket-transport/Makefile b/websocket-transport/Makefile
index f144c4a..208569d 100644
--- a/websocket-transport/Makefile
+++ b/websocket-transport/Makefile
@@ -1,3 +1,6 @@
+PREFIX = /usr/local
+BINDIR = $(PREFIX)/bin
+
 PROGRAMS = websocket-client websocket-server
 
 all: websocket-server
@@ -8,10 +11,14 @@ websocket-server: websocket-server.go pt.go websocket.go
 %: %.go
 	go build -o $@ $^
 
+install:
+	mkdir -p $(BINDIR)
+	cp -f websocket-server $(BINDIR)
+
 clean:
 	rm -f $(PROGRAMS)
 
 fmt:
 	go fmt
 
-.PHONY: all clean fmt
+.PHONY: all install clean fmt





More information about the tor-commits mailing list