Skip to content

Commit

Permalink
Allow VER to be overridden (e.g., for building from non-clone source)
Browse files Browse the repository at this point in the history
  • Loading branch information
HalosGhost committed Oct 23, 2020
1 parent 4164a6a commit 65e81ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skeleton
Expand Up @@ -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)
Expand Down

0 comments on commit 65e81ea

Please sign in to comment.