File: errors.mk

package info (click to toggle)
haproxy 3.2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 23,880 kB
  • sloc: ansic: 267,692; sh: 3,277; xml: 1,756; python: 1,345; makefile: 1,155; perl: 168; cpp: 21
file content (9 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
# error handling: define a "complain" function that maps either to "warning" or
# "error" depending on the "ERR" variable. The callers must use:
#  $(call $(complain),<msg>)

ifneq ($(ERR:0=),)
complain = error
else
complain = warning
endif