File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,18 @@ SCRIPTS_REL_PATH=$(shell ./calculate-relative $(TARGET_DIR)/sbin $(SBIN_DIR))
7676endif
7777endif
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+
7991all : $(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
You can’t perform that action at this time.
0 commit comments