Add git version to the EFI application

This commit is contained in:
Lauri Kenttä
2016-06-04 20:52:23 +03:00
parent ff838ec0f6
commit b7fd08c978
2 changed files with 9 additions and 1 deletions

View File

@@ -9,6 +9,8 @@ GNUEFI_LIB = /usr/$(CC_PREFIX)/lib
FILES_C = src/main.c src/util.c src/types.c src/config.c
FILES_H = $(wildcard src/*.h)
GIT_DESCRIBE = $(shell git describe --tags)
CFLAGS += '-DGIT_DESCRIBE=L"$(GIT_DESCRIBE)"'
.PHONY: all default