add Makefile
This commit is contained in:
13
Makefile
Normal file
13
Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
export GO ?= go
|
||||
|
||||
.PHONY: all
|
||||
all: wireproxy
|
||||
|
||||
.PHONY: wireproxy
|
||||
wireproxy:
|
||||
tag="$$(git describe --tag 2>/dev/null)" && \
|
||||
${GO} build -ldflags "-X 'main.version=$$tag'" ./cmd/wireproxy
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
${RM} wireproxy
|
||||
@@ -52,7 +52,7 @@ Arguments:
|
||||
```
|
||||
git clone https://github.com/octeep/wireproxy
|
||||
cd wireproxy
|
||||
go build ./cmd/wireproxy
|
||||
make
|
||||
```
|
||||
|
||||
# Sample config file
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
// an argument to denote that this process was spawned by -d
|
||||
const daemonProcess = "daemon-process"
|
||||
|
||||
var version = "1.0.4-dev"
|
||||
var version = "1.0.5-dev"
|
||||
|
||||
// attempts to pledge and panic if it fails
|
||||
// this does nothing on non-OpenBSD systems
|
||||
|
||||
Reference in New Issue
Block a user