Commit 4bfdcba1 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Add DESTDIR support to "make install"

parent 64270207
...@@ -5,7 +5,8 @@ gitlab-workhorse: $(wildcard *.go) ...@@ -5,7 +5,8 @@ gitlab-workhorse: $(wildcard *.go)
go build -ldflags "-X main.Version=${VERSION}" -o gitlab-workhorse go build -ldflags "-X main.Version=${VERSION}" -o gitlab-workhorse
install: gitlab-workhorse install: gitlab-workhorse
install gitlab-workhorse ${PREFIX}/bin/ mkdir -p $(DESTDIR)${PREFIX}/bin/
install gitlab-workhorse ${DESTDIR}${PREFIX}/bin/
.PHONY: test .PHONY: test
test: test/data/group/test.git clean-workhorse gitlab-workhorse test: test/data/group/test.git clean-workhorse gitlab-workhorse
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment