From 94a2fe0c17cac00c679cd08f9d8c3f6e78fa09a4 Mon Sep 17 00:00:00 2001 From: Dhole Date: Wed, 24 Jun 2015 17:46:28 +0200 Subject: 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. --- src/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index cad52e3..6b8ef08 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 -- cgit v1.2.3