commit 686d365
Johannes Thyssen Tishman
·
2023-11-29 22:29:03 +0000 UTC
parent ea86a2e
Fix building documentation when not in a git repository e.g. when building from a release tarball
1 files changed,
+1,
-1
M
Makefile
M
Makefile
+1,
-1
1@@ -11,7 +11,7 @@ BINDIR ?= bin
2 MANDIR ?= share/man
3 APPDIR ?= share/applications
4
5-ifneq (, $(shell which $(GIT) 2>/dev/null))
6+ifeq (0, $(shell $(GIT) status >/dev/null 2>&1; echo $$?))
7 export SOURCE_DATE_EPOCH ?= $(shell $(GIT) log -1 --pretty=%ct)
8 endif
9