Browse Source

Makefile: use Debian package versioning information for BUILD_TIME

Lets see what Jenkins provides us :)

From: Michael Prokop <mprokop@sipwise.com>
git.mgm/mediaproxy-ng/2.0
Michael Prokop 14 years ago
parent
commit
ac9b60a32a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/Makefile

+ 1
- 1
daemon/Makefile View File

@ -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)


Loading…
Cancel
Save