Skip to content

Commit 3cbacf0

Browse files
author
Simon MacMullen
committed
Merging heads
2 parents 31be172 + a24c0cf commit 3cbacf0

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@ SCRIPTS_REL_PATH=$(shell ./calculate-relative $(TARGET_DIR)/sbin $(SBIN_DIR))
7676
endif
7777
endif
7878

79+
# Versions prior to this are not supported
80+
NEED_MAKE := 3.80
81+
ifneq "$(NEED_MAKE)" "$(firstword $(sort $(NEED_MAKE) $(MAKE_VERSION)))"
82+
$(error Versions of make prior to $(NEED_MAKE) are not supported)
83+
endif
84+
85+
# .DEFAULT_GOAL introduced in 3.81
86+
DEFAULT_GOAL_MAKE := 3.81
87+
ifneq "$(DEFAULT_GOAL_MAKE)" "$(firstword $(sort $(DEFAULT_GOAL_MAKE) $(MAKE_VERSION)))"
88+
.DEFAULT_GOAL=all
89+
endif
90+
7991
all: $(TARGETS)
8092

8193
$(DEPS_FILE): $(SOURCES) $(INCLUDES)
@@ -268,7 +280,7 @@ install_dirs:
268280
mkdir -p $(SBIN_DIR)
269281
mkdir -p $(MAN_DIR)
270282

271-
$(foreach XML, $(USAGES_XML), $(eval $(call usage_dep, $(XML))))
283+
$(foreach XML,$(USAGES_XML),$(eval $(call usage_dep, $(XML))))
272284

273285
# Note that all targets which depend on clean must have clean in their
274286
# name. Also any target that doesn't depend on clean should not have

0 commit comments

Comments
 (0)