diff options
Diffstat (limited to 'buildlib/fail.mak')
-rw-r--r-- | buildlib/fail.mak | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/buildlib/fail.mak b/buildlib/fail.mak new file mode 100644 index 000000000..dfc194e1e --- /dev/null +++ b/buildlib/fail.mak @@ -0,0 +1,20 @@ +# -*- make -*- + +# This prints a failure message but does not abort the make + +# Input +# $(MESSAGE) - The message to show +# $(PROGRAM) - The program/libary/whatever. + +# See defaults.mak for information about LOCAL + +LOCAL := $(PROGRAM) +$(LOCAL)-MSG := $(MESSAGE) + +# Install hooks +program: $(PROGRAM) + +.PHONY: $(PROGRAM) +$(PROGRAM) : + echo $($@-MSG) + |