Skip to content

Commit

Permalink
chore(build): Save a double-configure on first download/build
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jul 18, 2020
1 parent 8172455 commit c870b83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ SHELL = bash

BUILT_SOURCES = .version

CONFIGURE_DEPENDENCIES = .version

.version: $(shell test -e .git && awk '{print ".git/" $$2}' .git/HEAD)
mv $@{,-prev} 2>/dev/null || touch $@-prev
( test -e .git && ./build-aux/git-version-gen .tarball-version || echo $(VERSION) ) > $@
touch -r $(or $<,configure) $@
cmp -s $@{,-prev} || autoreconf configure.ac --force -W none
sed -i -e '/rm -f/s/ core / /' configure aclocal.m4 ||:

Expand Down

0 comments on commit c870b83

Please sign in to comment.