File: errors.mk

package info (click to toggle)
haproxy 3.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 24,704 kB
  • sloc: ansic: 276,528; sh: 3,630; xml: 1,756; python: 1,345; makefile: 1,167; perl: 168; cpp: 21
file content (9 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (3)
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