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

Kristian Høgsberg 13 years ago
parent 429490df1a
commit cebb34ef9e
  1. 6
      src/Makefile.am

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

Loading…
Cancel
Save