File: GNUmakefile

package info (click to toggle)
dateutils 0.3.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,236 kB
  • ctags: 1,790
  • sloc: ansic: 20,002; makefile: 1,434; yacc: 200; sh: 167; lex: 105
file content (36 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This GNUmakefile is used only if you run GNU Make.

# If the user runs GNU make but has not yet run ./configure,
# give them a diagnostic.
_gl-Makefile := $(wildcard [M]akefile)
ifneq ($(_gl-Makefile),)

_dist-target_p ?= $(filter-out %clean, $(filter dist%,$(MAKECMDGOALS)))

include Makefile

# update the included makefile snippet which sets VERSION variables
version.mk: .version version.mk.in FORCE
	-$(AM_V_GEN) \
	if test -w $< -a "$(MAKECMDGOALS)" != "am--refresh"; then \
		$(MAKE) -C "$(top_builddir)/build-aux"; \
		PATH="$(top_builddir)/build-aux:$${PATH}" \
			yuck scmver --ignore-noscm -o $@ --reference $^; \
		if test $$? -eq 3 -a -n "$(_dist-target_p)"; then \
			exec $(MAKE) $(MAKECMDGOALS); \
		fi; \
	fi

else

.DEFAULT_GOAL := abort-due-to-no-makefile
$(MAKECMDGOALS): abort-due-to-no-makefile

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

.PHONY: FORCE