10 lines
288 B
Makefile
10 lines
288 B
Makefile
# (c) 2019 Thomas Bernard
|
|
# 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)
|
|
CFLAGS += -DMINIUPNPD_GIT_REF=\"$(GITBRANCH)-$(GITREF)\"
|
|
endif
|