Skip to content

Commit 6b83c00

Browse files
author
octeep
committed
add Makefile
1 parent 0e63331 commit 6b83c00

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export GO ?= go
2+
3+
.PHONY: all
4+
all: wireproxy
5+
6+
.PHONY: wireproxy
7+
wireproxy:
8+
tag="$$(git describe --tag 2>/dev/null)" && \
9+
${GO} build -ldflags "-X 'main.version=$$tag'" ./cmd/wireproxy
10+
11+
.PHONY: clean
12+
clean:
13+
${RM} wireproxy

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Arguments:
5252
```
5353
git clone https://github.com/octeep/wireproxy
5454
cd wireproxy
55-
go build ./cmd/wireproxy
55+
make
5656
```
5757

5858
# Sample config file

cmd/wireproxy/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
// an argument to denote that this process was spawned by -d
1515
const daemonProcess = "daemon-process"
1616

17-
var version = "1.0.4-dev"
17+
var version = "1.0.5-dev"
1818

1919
// attempts to pledge and panic if it fails
2020
// this does nothing on non-OpenBSD systems

0 commit comments

Comments
 (0)