123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- _gl-Makefile := $(wildcard [M]akefile)
- ifneq ($(_gl-Makefile),)
- export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner
- ALL_RECURSIVE_TARGETS =
- include Makefile
- -include $(srcdir)/cfg.mk
- _build-aux ?= build-aux
- _autoreconf ?= autoreconf -v
- include $(srcdir)/maint.mk
- _have-git-version-gen := \
- $(shell test -f $(srcdir)/$(_build-aux)/git-version-gen && echo yes)
- ifeq ($(_have-git-version-gen)0,yes$(MAKELEVEL))
- _is-dist-target ?= $(filter-out %clean, \
- $(filter maintainer-% dist% alpha beta stable,$(MAKECMDGOALS)))
- _is-install-target ?= $(filter-out %check, $(filter install%,$(MAKECMDGOALS)))
- ifneq (,$(_is-dist-target)$(_is-install-target))
- _curr-ver := $(shell cd $(srcdir) \
- && $(_build-aux)/git-version-gen \
- .tarball-version \
- $(git-version-gen-tag-sed-script))
- ifneq ($(_curr-ver),$(VERSION))
- ifeq ($(_curr-ver),UNKNOWN)
- $(info WARNING: unable to verify if $(VERSION) is the correct version)
- else
- ifneq (,$(_is-install-target))
-
-
-
-
-
-
-
- $(info WARNING: version string $(VERSION) is out of date;)
- $(info run '$(MAKE) _version' to fix it)
- else
- $(info INFO: running autoreconf for new version string: $(_curr-ver))
- GNUmakefile: _version
- touch GNUmakefile
- endif
- endif
- endif
- endif
- endif
- .PHONY: _version
- _version:
- cd $(srcdir) && rm -rf autom4te.cache .version && $(_autoreconf)
- $(MAKE) $(AM_MAKEFLAGS) Makefile
- else
- .DEFAULT_GOAL := abort-due-to-no-makefile
- srcdir = .
- -include ./cfg.mk
- _build-aux ?= build-aux
- _autoreconf ?= autoreconf -v
- include ./maint.mk
- ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile)
- $(MAKECMDGOALS): abort-due-to-no-makefile
- endif
- abort-due-to-no-makefile:
- @echo There seems to be no Makefile in this directory. 1>&2
- @echo "You must run ./configure before running 'make'." 1>&2
- @exit 1
- endif
- AM_RECURSIVE_TARGETS ?= $(RECURSIVE_TARGETS:-recursive=) \
- $(RECURSIVE_CLEAN_TARGETS:-recursive=) \
- dist distcheck tags ctags
- ALL_RECURSIVE_TARGETS += $(AM_RECURSIVE_TARGETS)
- ifneq ($(word 2, $(MAKECMDGOALS)), )
- ifneq ($(filter $(ALL_RECURSIVE_TARGETS), $(MAKECMDGOALS)), )
- .NOTPARALLEL:
- endif
- endif
|