Mercurial > audlegacy
changeset 2836:7035e35d4067 trunk
Remove build_stamp.c and generate it on demand.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Fri, 15 Jun 2007 12:16:34 -0500 |
parents | d4d21dd19490 |
children | b6b8fe38e1e3 |
files | src/audacious/Makefile src/audacious/build_stamp.c |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/Makefile Thu Jun 14 22:50:45 2007 -0500 +++ b/src/audacious/Makefile Fri Jun 15 12:16:34 2007 -0500 @@ -121,12 +121,17 @@ SOURCES += dbus.c CFLAGS += -I../libaudclient DBUS_BINDINGS = dbus-server-bindings.h dbus-client-bindings.h -depend-prehook: $(DBUS_BINDINGS) OBJECTIVE_LIBS_NOINST += $(DBUS_BINDINGS) LIBDEP += ../libaudclient/libaudclient.so LDADD += -L../libaudclient -laudclient endif +depend-prehook: $(DBUS_BINDINGS) + if [ -d .hg ]; then \ + revh=`hg tip --template 'const char *svn_stamp = "#rev#:#node|short#"\n' 2>/dev/null`; \ + [ -z "$$revh" ] || echo "$$revh" > build_stamp.c; \ + fi + DBUS_BINDINGS_SOURCES = \ objects.xml \ mpris_root.xml \