Skip to content

Commit

Permalink
Makefile: Improve gitrev.h generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
anse1 committed May 3, 2018
1 parent 5d04b66 commit 8bbb4fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ EXTRA_DIST = gitrev.h dump.hh expr.hh grammar.hh log.hh prod.hh \
dut.hh postgres.hh monetdb.hh log-v1.0-to-v1.2.sql

gitrev.h: $(HEADERS) $(SOURCES)
echo "#define GITREV \"$$(git describe --dirty --tags --always)\"" > $@
-if git describe --dirty --tags --always > /dev/null ; then \
echo "#define GITREV \"$$(git describe --dirty --tags --always)\"" > $@ ;\
fi

filterdump:
psql -c 'copy (select error from known) to stdout' smith|sort -u > known.txt
Expand Down

0 comments on commit 8bbb4fa

Please sign in to comment.