[tor-commits] [websocket/master] add an optional target to build a man page.

infinity0 at torproject.org infinity0 at torproject.org
Sun Feb 23 19:39:12 UTC 2014


commit ffcbb269b56bd9f5a329baffa58e430a59dfb93e
Author: Ximin Luo <infinity0 at torproject.org>
Date:   Sun Feb 23 19:37:34 2014 +0000

    add an optional target to build a man page.
---
 Makefile |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 7824879..02d4d47 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
 DESTDIR =
 PREFIX = /usr/local
 BINDIR = $(PREFIX)/bin
+VERSION = 0.1
 
 GOBUILDFLAGS =
 # Alternate flags to use gccgo, allowing cross-compiling for x86 from
@@ -16,6 +17,9 @@ websocket-server/websocket-server: websocket-server/*.go websocket/*.go
 websocket-client/websocket-client: websocket-client/*.go
 	cd websocket-client && go build $(GOBUILDFLAGS)
 
+doc/websocket-server.1: websocket-server/websocket-server
+	help2man --no-info --name "WebSocket server pluggable transport" --version-string "$(VERSION)" -o "$@" "$<"
+
 install: websocket-server/websocket-server
 	mkdir -p "$(DESTDIR)$(BINDIR)"
 	cp -f websocket-server/websocket-server "$(DESTDIR)$(BINDIR)"



More information about the tor-commits mailing list