| 1 |
# This GNUmakefile is used only if you run GNU Make. |
| 2 |
|
| 3 |
# If the user runs GNU make but has not yet run ./configure, |
| 4 |
# give them a diagnostic. |
| 5 |
_gl-Makefile := $(wildcard [M]akefile) |
| 6 |
ifneq ($(_gl-Makefile),) |
| 7 |
|
| 8 |
_dist-target_p ?= $(filter dist%,$(MAKECMDGOALS)) |
| 9 |
|
| 10 |
include Makefile |
| 11 |
|
| 12 |
# update the included makefile snippet which sets VERSION variables |
| 13 |
.PHONY: version.mk |
| 14 |
version.mk: .version version.mk.in |
| 15 |
-$(AM_V_GEN) \ |
| 16 |
if test "$(MAKECMDGOALS)" != "am--refresh"; then \ |
| 17 |
$(MAKE) -C "$(top_builddir)/build-aux" $(MAKECMDGOALS); \ |
| 18 |
PATH="$(top_builddir)/build-aux:$${PATH}" \ |
| 19 |
$(YUCK) scmver --ignore-noscm -o $@ --reference $^; \ |
| 20 |
if test $$? -eq 3 -a -n "$(_dist-target_p)"; then \ |
| 21 |
exec $(MAKE) $(MAKECMDGOALS); \ |
| 22 |
fi; \ |
| 23 |
fi |
| 24 |
|
| 25 |
else |
| 26 |
|
| 27 |
.DEFAULT_GOAL := abort-due-to-no-makefile |
| 28 |
$(MAKECMDGOALS): abort-due-to-no-makefile |
| 29 |
|
| 30 |
abort-due-to-no-makefile: |
| 31 |
@echo There seems to be no Makefile in this directory. 1>&2 |
| 32 |
@echo "You must run ./configure before running 'make'." 1>&2 |
| 33 |
exit 1 |
| 34 |
|
| 35 |
endif |
| 36 |
|
| 37 |
.PHONY: FORCE |