Skip to content

Commit

Permalink
BUILD: Only display "GEN gitstamp" when the file is actually updated
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Oct 16, 2016
1 parent bd041f2 commit 9a86d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitstamp/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ gitstamp:
@-$(eval $@_REVDIRT := $(shell cd $(top_srcdir); git update-index --refresh --unmerged 1>/dev/null 2>&1; git diff-index --quiet HEAD 2>/dev/null || echo ".dirty"))
@-$(eval $@_REVDESC := $(shell if test x$($@_REVLINE) != "x"; then echo $($@_REVLINE)$($@_REVDIRT); fi ))
@[ -f $@ ] || touch $@
$(AM_V_GEN)echo $($@_REVDESC) | cmp -s $@ - || echo $($@_REVDESC) > $@
@echo $($@_REVDESC) | cmp -s $@ - || ( echo " GEN $@ ($($@_REVDESC))" ; echo $($@_REVDESC) > $@ )

clean-local:
rm -f gitstamp
Expand Down

0 comments on commit 9a86d72

Please sign in to comment.