git-version: Use automake silent macro to make build prettier

This commit is contained in:
Kristian Høgsberg 2012-06-18 11:09:13 -04:00
parent 429490df1a
commit cebb34ef9e

View File

@ -33,9 +33,9 @@ weston_SOURCES = \
weston-egl-ext.h
git-version.h : .FORCE
echo "#define BUILD_ID \"$(shell git --work-tree=$(top_srcdir) describe --always --dirty) $(shell git --work-tree=$(top_srcdir) log -1 --format='%s (%ci)')\"" > $@-new
cmp -s $@ $@-new || cp $@-new $@
rm $@-new
$(AM_V_GEN)(echo "#define BUILD_ID \"$(shell git --work-tree=$(top_srcdir) describe --always --dirty) $(shell git --work-tree=$(top_srcdir) log -1 --format='%s (%ci)')\"" > $@-new; \
cmp -s $@ $@-new || cp $@-new $@; \
rm $@-new)
.FORCE :