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
- Add Makefile.in for building rsync with mgear. Yay!
[mgear/mgear.git]
/
demo
/
Makefile
diff --git
a/demo/Makefile
b/demo/Makefile
index
b8a7ab7
..
ff220b6
100644
(file)
--- a/
demo/Makefile
+++ b/
demo/Makefile
@@
-1,18
+1,24
@@
-# Very simple
Mage
example
+# Very simple
mgear
example
-include m
age
.mk
+include m
gear
.mk
.SECONDARY:
all:
.SECONDARY:
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