From 65e81ea79e96e9ce05e78ca6252ce10c8efd4be2 Mon Sep 17 00:00:00 2001 From: halosghost Date: Thu, 22 Oct 2020 23:36:15 -0500 Subject: [PATCH] Allow VER to be overridden (e.g., for building from non-clone source) --- skeleton | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skeleton b/skeleton index 0e3184a..56ffe85 100644 --- a/skeleton +++ b/skeleton @@ -2,7 +2,7 @@ PROGNM = programname CC ?= gcc CFLAGS ?= -O2 -fPIE -flto -fstack-protector-strong --param=ssp-buffer-size=1 -Wno-reserved-id-macro -Wall -Wextra -Wpedantic -Werror -std=c18 -VER = `git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'` +VER ?= $(shell (git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g') || date +"v0.r%Y%m%d") FMFLAGS = -wp -then -wp -wp-rte SOURCES ?= $(wildcard src/*.c) ARCH ?= $(shell uname -m)