File: compat.mk

package info (click to toggle)
dte 1.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,152 kB
  • sloc: ansic: 28,421; sh: 94; awk: 56; makefile: 13; sed: 1
file content (12 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
REQUIRE = $(if $(filter $(1), $(.FEATURES)),, $(error $(REQERROR)))
REQERROR = Required feature "$(strip $(1))" not supported by $(MAKE)

$(call REQUIRE, target-specific)
$(call REQUIRE, else-if)
$(call REQUIRE, order-only)

ifeq "$(MAKE_VERSION)" "3.81"
  $(warning Disabling build optimization to work around a bug in GNU Make 3.81)
else
  make-lazy = $(eval $1 = $$(eval $1 := $(value $(1)))$$($1))
endif