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.
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