fixed patch for the makefile
This commit is contained in:
parent
e431855255
commit
5c0c3fe6a0
2 changed files with 8 additions and 4 deletions
|
@ -1,12 +1,16 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index f6456e1..c25e29e 100644
|
||||
index f6456e1..55af079 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,5 +1,5 @@
|
||||
@@ -1,8 +1,8 @@
|
||||
-PREFIX=/usr/local
|
||||
-VERSION=$(shell git describe)-$(shell date -u +%Y%m%d.%H%M%S)
|
||||
+PREFIX=${DESTDIR}/usr
|
||||
+VERSION=0.3.0-$(shell date -u +%Y%m%d.%H%M%S)
|
||||
|
||||
gitlab-git-http-server: main.go githandler.go
|
||||
go build -ldflags "-X main.Version ${VERSION}" -o gitlab-git-http-server
|
||||
- go build -ldflags "-X main.Version ${VERSION}" -o gitlab-git-http-server
|
||||
+ go build -ldflags "-X main.Version=${VERSION}" -o gitlab-git-http-server
|
||||
|
||||
install: gitlab-git-http-server
|
||||
install gitlab-git-http-server ${PREFIX}/bin/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue