2020-04-28 23:49:06 +00:00
|
|
|
# (c) 2019-2020 Thomas Bernard
|
2019-10-05 19:59:42 +00:00
|
|
|
# For GNU Make
|
|
|
|
|
|
|
|
ISGITREPO := $(shell git rev-parse --is-inside-work-tree)
|
|
|
|
ifeq ($(ISGITREPO),true)
|
|
|
|
GITREF := $(shell git rev-parse --short HEAD)
|
|
|
|
GITBRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
2020-04-28 23:49:06 +00:00
|
|
|
CPPFLAGS += -DMINIUPNPD_GIT_REF=\"$(GITBRANCH)-$(GITREF)\"
|
2019-10-05 19:59:42 +00:00
|
|
|
endif
|