summaryrefslogtreecommitdiff
path: root/buildlib/fail.mak
blob: fc187766d80ee970f4ff6d2d6099704918b0e60f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- make -*-

# This prints a failure message but does not abort the make

# Input
# $(MESSAGE) - The message to show
# $(PROGRAM) - The program/library/whatever.

# See defaults.mak for information about LOCAL

LOCAL := $(PROGRAM)
$(LOCAL)-MSG := $(MESSAGE)

# Install hooks
program: $(PROGRAM)

.PHONY: $(PROGRAM)
$(PROGRAM) :
	echo $($@-MSG)