Matt McCutchen's Web Site
/
mgear
/
mgear.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update materials for building rsync with mgear.
[mgear/mgear.git]
/
demo
/
Makefile
diff --git
a/demo/Makefile
b/demo/Makefile
index
75eaf85
..
ff220b6
100644
(file)
--- a/
demo/Makefile
+++ b/
demo/Makefile
@@
-6,13
+6,19
@@
include mgear.mk
all:
all:
-cmd-xgrep = grep 'X' '$<' >'$
t
' && echo "Hello world from xgrep"
-$(call mg-define-rule,%.x,%,
$(value cmd-xgrep)
)
+cmd-xgrep = grep 'X' '$<' >'$
@
' && echo "Hello world from xgrep"
+$(call mg-define-rule,%.x,%,
cmd-xgrep
)
-cmd-addheader = echo 'Header:' | cat - '$<' >'$
t
'
-$(call mg-define-rule,%.h,%,
$(value cmd-addheader)
)
+cmd-addheader = echo 'Header:' | cat - '$<' >'$
@
'
+$(call mg-define-rule,%.h,%,
cmd-addheader
)
# Testing obfuscation
mainoid := $(newoid)
all: $(mainoid)
$(mainoid)@opr:=foo.x.h
# Testing obfuscation
mainoid := $(newoid)
all: $(mainoid)
$(mainoid)@opr:=foo.x.h
+$(mainoid)@ocmd:=
+
+clean:
+ $(call mg-clean-cmd,.)
+.PHONY: clean
+
\ No newline at end of file