blob: a73dba5d41c2b140be97412b21be549d8b1901a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
|