mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-04-29 19:01:42 +02:00
add Makefile
This commit is contained in:
parent
41f2d96f04
commit
2d53f675af
3 changed files with 15 additions and 2 deletions
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
|
git clone https://github.com/octeep/wireproxy
|
||||||
cd wireproxy
|
cd wireproxy
|
||||||
go build ./cmd/wireproxy
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
# Sample config file
|
# Sample config file
|
||||||
|
|
|
@ -14,7 +14,7 @@ import (
|
||||||
// an argument to denote that this process was spawned by -d
|
// an argument to denote that this process was spawned by -d
|
||||||
const daemonProcess = "daemon-process"
|
const daemonProcess = "daemon-process"
|
||||||
|
|
||||||
var version = "1.0.4-dev"
|
var version = "1.0.5-dev"
|
||||||
|
|
||||||
// attempts to pledge and panic if it fails
|
// attempts to pledge and panic if it fails
|
||||||
// this does nothing on non-OpenBSD systems
|
// this does nothing on non-OpenBSD systems
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue