- Add Makefile.in for building rsync with mgear. Yay!
[mgear/mgear.git] / demo / Makefile
index 41f7ef1..ff220b6 100644 (file)
@@ -6,16 +6,17 @@ include mgear.mk
 
 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
+$(mainoid)@ocmd:=
 
 clean:
        $(call mg-clean-cmd,.)