diff options
author | Andrew Cady <d@jerkface.net> | 2020-05-29 12:55:10 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-05-29 12:55:10 -0400 |
commit | 54c0b33461aa51e3064490d5faaa6600deaa3a22 (patch) | |
tree | e534465677b7ef64a3cd52960ca5d862eb718027 | |
parent | b5dcd1d2803047f21363fc7f5128c70ffc4c3a82 (diff) |
detect $GIT_DIR
-rw-r--r-- | src/control.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/control.mk b/src/control.mk index 42760c5..ed29ee1 100644 --- a/src/control.mk +++ b/src/control.mk | |||
@@ -1,6 +1,9 @@ | |||
1 | ifndef GIT_DIR | ||
2 | GIT_DIR := $(shell git rev-parse --git-dir) | ||
3 | endif | ||
1 | 4 | ||
2 | control_files := $(wildcard control.d/*.control) | 5 | control_files := $(wildcard control.d/*.control) |
3 | control: src/control.sh $(control_files) .git/refs/heads/master | 6 | control: src/control.sh $(control_files) $(GIT_DIR)/refs/heads/master |
4 | ./src/control.sh $(control_files) > $@ | 7 | ./src/control.sh $(control_files) > $@ |
5 | 8 | ||
6 | include src/equivs.mk | 9 | include src/equivs.mk |