build: automate the rerun of autogen.sh

Automate the reuse of autogen.sh, rather than just erroring out.

* cfg.mk (_update_required): Run autogen.sh, rather than just
warning about it.
(_autogen): New target.
This commit is contained in:
Eric Blake 2010-03-26 17:11:22 -06:00
parent 062b0aa33b
commit 4eb8022260

7
cfg.mk
View File

@ -308,9 +308,14 @@ ifeq (0,$(MAKELEVEL))
stamp="$$($(_submodule_hash) $(_curr_status) 2>/dev/null)"; \
test "$$stamp" = "$$actual"; echo $$?)
ifeq (1,$(_update_required))
$(error gnulib update required; run ./autogen.sh first)
$(info INFO: gnulib update required; running ./autogen.sh first)
Makefile: _autogen
endif
endif
.PHONY: _autogen
_autogen:
$(srcdir)/autogen.sh
# Exempt @...@ uses of these symbols.
_makefile_at_at_check_exceptions = ' && !/(SCHEMA|SYSCONF)DIR/'