From ac9b60a32a5c27c9f0760532454881f95a7d7d82 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 19 Dec 2011 15:38:40 +0000 Subject: [PATCH] Makefile: use Debian package versioning information for BUILD_TIME Lets see what Jenkins provides us :) From: Michael Prokop --- daemon/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/Makefile b/daemon/Makefile index c9a90d713..f94b51bbd 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -60,7 +60,7 @@ clean: $(CC) $(CFLAGS) -M $(SRCS) | sed -e 's/:/ .depend:/' > .depend build_time.h: $(SRCS) Makefile - date +"#define BUILD_TIME \"%Y-%m-%d %H:%M:%S\"" > build_time.h + echo "#define BUILD_TIME \"$(shell dpkg-parsechangelog -l../debian/changelog | awk '/^Version: / {print $$2}')\"" > build_time.h mediaproxy-ng: $(OBJS) .depend build_time.h $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)