commit e92997b
delthas
·
2023-11-27 14:14:44 +0000 UTC
parent 82ff357
Do not require git for building documentation
1 files changed,
+4,
-1
M
Makefile
M
Makefile
+4,
-1
1@@ -4,13 +4,16 @@
2 GO ?= go
3 RM ?= rm
4 SCDOC ?= scdoc
5+GIT ?= git
6 GOFLAGS ?=
7 PREFIX ?= /usr/local
8 BINDIR ?= bin
9 MANDIR ?= share/man
10 APPDIR ?= share/applications
11
12-export SOURCE_DATE_EPOCH ?= $(shell git log -1 --pretty=%ct)
13+ifneq (, $(shell which $(GIT) 2>/dev/null))
14+export SOURCE_DATE_EPOCH ?= $(shell $(GIT) log -1 --pretty=%ct)
15+endif
16
17 all: senpai doc
18