2015-10-16 18:46:16 +02:00
|
|
|
diff --git a/Makefile b/Makefile
|
2015-10-16 20:45:41 +02:00
|
|
|
index f6456e1..55af079 100644
|
2015-10-16 18:46:16 +02:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2015-10-16 20:45:41 +02:00
|
|
|
@@ -1,8 +1,8 @@
|
2015-10-16 18:46:16 +02:00
|
|
|
-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
|
2015-10-16 20:45:41 +02:00
|
|
|
- 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/
|