7 # The escaping is absurd, but we need to escape for shell, sed, make, define
8 GIT_VERSION:="$(shell git describe --tags --always) ($(shell git log --pretty=format:%cd --date=short -n1), branch $(shell [ -f .git/HEAD ] && sed 's/ref: refs\/heads\/\(.*\)/\\\\\\"\1\\\\\\"/g' .git/HEAD || echo 'unknown'))"
10 # Fallback for libyajl 1 which did not include yajl_version.h. We need
11 # YAJL_MAJOR from that file to decide which code path should be used.
12 CFLAGS += -idirafter yajl-fallback
18 CPPFLAGS += -DI3BAR_VERSION=\"${GIT_VERSION}\"
25 LDFLAGS += -L/usr/local/lib