weston_LDADD = $(COMPOSITOR_LIBS) $(DLOPEN_LIBS) -lm ../shared/libshared.la
weston_SOURCES = \
+ git-version.h \
log.c \
log.h \
compositor.c \
weston-launch.h \
weston-egl-ext.h
+git-version.h : .FORCE
+ echo "#define WESTON_SHA1 \"$(shell git --git-dir=$(top_srcdir)/.git show-ref --head --hash=20 HEAD)\"" > $@-new
+ cmp -s $@ $@-new || cp $@-new $@
+ rm $@-new
+
+.FORCE :
+
if ENABLE_XWAYLAND
SUBDIRS = xwayland
endif
tablet-shell-protocol.c \
tablet-shell-server-protocol.h \
desktop-shell-protocol.c \
- desktop-shell-server-protocol.h
+ desktop-shell-server-protocol.h \
+ git-version.h
CLEANFILES = $(BUILT_SOURCES)