mangen: Set build date externally
Patch build system to allow the build date in the man entry to be set externally. In Debian it will be set to the latest debian/changelog entry for reproducibility.
This commit is contained in:
1 parent
289d2f22b2
commit
94a2fe0c17
2 files changed
+8
-2
No files matched your search
+3
-1
@@ -3,11 +3,13 @@ include ../config.mk
|
||||
PREFIX ?= /usr/local
|
||||
INSTALL ?= install
|
||||
|
||||
BUILD_DATE ?= $(shell LC_ALL=C date '+%b %e %Y')
|
||||
|
||||
CC = gcc
|
||||
CROSS_CC = $(CROSS_COMPILE)$(CC)
|
||||
HOST_CC = $(HOST_COMPILE)$(CC)
|
||||
|
||||
CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L
|
||||
CPPFLAGS += -DVERSION=\"$(VERSION)\" -DBUILD_DATE="\"$(BUILD_DATE)\"" -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L
|
||||
CFLAGS += -W -Wall -O2 -pedantic -std=c99
|
||||
LIBS += -lusb
|
||||
|
||||
|
||||
Reference in new issue
Block a user