1
0
Fork 0

Forcing version regen on combine if in git repo

This will re-run `autoconf` if it is detected that the user is within the
git repository, which will force `configure` to be regenerated; this is
necessary, since `configure.ac` contains the version macros.
protolib
Mike Gerwitz 2014-06-11 22:19:53 -04:00
parent 013da59d7f
commit 8558d90596
1 changed files with 6 additions and 2 deletions

View File

@ -65,7 +65,11 @@ $(path_build):
$(MKDIR_P) "$(path_build)" $(MKDIR_P) "$(path_build)"
combine: $(path_combine_output) $(path_build)/browser-test.html combine: reconf $(path_combine_output) $(path_build)/browser-test.html
# will force a reconfigure (for version data) if in the git repo
reconf:
test -d .git && autoconf && ./configure
# combine all modules into easily redistributable ease.js file (intended for # combine all modules into easily redistributable ease.js file (intended for
# browser) # browser)
@ -155,7 +159,7 @@ ChangeLog: FORCE
> $@ > $@
# we *only* want this in a distribution, otherwise the version number will # we *only* want this in a distribution, otherwise the version number will
# never change! # never change!
version: version: FORCE
$(path_tools)/vergen > $@ $(path_tools)/vergen > $@
clean-local: clean-local: