Add more non-srcdir build support.

* GNUmakefile (dummy): Split a long line.
Add -v option to autoreconf invocation.
This commit is contained in:
Jim Meyering 2007-11-12 20:09:13 +01:00
parent dcae1fc785
commit 7daa47a115
2 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2007-11-12 Jim Meyering <meyering@redhat.com>
Add more non-srcdir build support.
* GNUmakefile (dummy): Split a long line.
Add -v option to autoreconf invocation.
Remove the autoreconf-provided INSTALL, so that we regenerate it.
* GNUmakefile (dummy): Remove INSTALL.

View File

@ -51,10 +51,14 @@ include Makefile
ifeq (0,$(MAKELEVEL))
_is-dist-target = $(filter dist% alpha beta major,$(MAKECMDGOALS))
ifneq (,$(_is-dist-target))
_curr-ver := $(shell build-aux/git-version-gen $(srcdir) .version)
_curr-ver := $(shell $(srcdir)/build-aux/git-version-gen $(srcdir) .version)
ifneq ($(_curr-ver),$(VERSION))
$(info INFO: running autoreconf for new version string; old: $(_curr-ver))
dummy := $(shell rm -rf autom4te.cache; autoreconf -i -v && $(MAKE) clean && rm -f INSTALL)
dummy := $(shell \
rm -rf autom4te.cache; \
(cd $(srcdir) && autoreconf -i -v) \
&& $(MAKE) clean \
&& rm -f INSTALL)
endif
endif
endif