summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/pre/get_alternative.make13
1 files changed, 13 insertions, 0 deletions
diff --git a/rules/pre/get_alternative.make b/rules/pre/get_alternative.make
new file mode 100644
index 000000000..1905bb9f5
--- /dev/null
+++ b/rules/pre/get_alternative.make
@@ -0,0 +1,13 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2012 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+ptx/get_alternative = $(shell ptxd_get_alternative $(1) $(2) && echo $$ptxd_reply)
+
+# vim: syntax=make