Accept TZPFMS_{VERSION,DATE} from environment in Makefile

This commit is contained in:
наб 2021-12-20 20:23:14 +01:00
parent b45a331747
commit 3651105e0f
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1

View File

@ -45,8 +45,8 @@ else
LNCXXAR :=
endif
TZPFMS_VERSION := "$(patsubst v%,%,$(shell git describe))"
TZPFMS_DATE := $(shell date -d@$$(git log --no-show-signature -1 --pretty=%at) '+%B %e, %Y')
TZPFMS_VERSION ?= "$(patsubst v%,%,$(shell git describe))"
TZPFMS_DATE ?= $(shell date -d@$$(git log --no-show-signature -1 --pretty=%at) '+%B %e, %Y')
SYSTEMD_SYSTEM_UNITDIR := $(shell ssud="$$(pkg-config --variable=systemd_system_unit_dir systemd 2>/dev/null)"; echo "$${ssud:-/usr/lib/systemd/system}")