aboutsummaryrefslogtreecommitdiff
path: root/make/rules.mk
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-27 17:58:48 -0500
committerJoel Martin <github@martintribe.org>2014-04-27 17:58:48 -0500
commitcc021efe10380039a13da5300990639203450634 (patch)
tree02977d571ee6b42e7d5429ff8e922f183422eeb5 /make/rules.mk
parentb58698b257fb6552e053cd245d63a140d3f7a478 (diff)
downloadmal-cc021efe10380039a13da5300990639203450634.tar.gz
mal-cc021efe10380039a13da5300990639203450634.zip
Add step5/9 tests for impls that support it.
- Also remove broken make/tests/*.mk tests. Not used any more.
Diffstat (limited to 'make/rules.mk')
-rw-r--r--make/rules.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/make/rules.mk b/make/rules.mk
new file mode 100644
index 0000000..a73dba5
--- /dev/null
+++ b/make/rules.mk
@@ -0,0 +1,34 @@
+# To load this file:
+# $(eval include rules.mk)
+
+# Usage:
+# (make* "$(eval $(call PRINT_RULE,abc,,@echo \"building $$@\"))")
+define PRINT_RULE
+$(1): $(2)
+ $(3)
+endef
+
+# Usage:
+# (make* "$(eval $(call PRINT_LINES,abc:, @echo \"shell command\"))")
+define PRINT_LINES
+$(1)
+$(2)
+$(3)
+$(4)
+$(5)
+$(6)
+$(7)
+$(8)
+$(9)
+$(10)
+$(11)
+$(12)
+$(13)
+$(14)
+$(15)
+$(16)
+$(17)
+$(18)
+$(19)
+$(20)
+endef