summaryrefslogtreecommitdiff
path: root/buildlib/fail.mak
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:56:32 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:56:32 +0000
commitb2e465d6d32d2dc884f58b94acb7e35f671a87fe (patch)
tree5928383b9bde7b0ba9812e6526ad746466e558f7 /buildlib/fail.mak
parent00b47c98ca4a4349686a082eba6d77decbb03a4d (diff)
Join with aliencode
Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
Diffstat (limited to 'buildlib/fail.mak')
-rw-r--r--buildlib/fail.mak20
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)
+