Commit 9e7b612b authored by Kamil Trzcinski's avatar Kamil Trzcinski

Recompile workhorse if any of `.go` file is changed

We need to use `$(shell find` to find files from all subdirectories
parent 30884ebf
PREFIX=/usr/local
VERSION=$(shell git describe)-$(shell date -u +%Y%m%d.%H%M%S)
gitlab-workhorse: $(wildcard *.go)
gitlab-workhorse: $(shell find . -name '*.go')
go build -ldflags "-X main.Version=${VERSION}" -o gitlab-workhorse
install: 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