- Add a full target obfuscation factory and rule and a comment explaining them.
[mgear/mgear.git] / demo / Makefile
index cfdfc32..947822e 100644 (file)
@@ -4,10 +4,15 @@ include mage.mk
 
 .SECONDARY:
 
-foo.x.h:
+all:
 
 cmd-xgrep = grep 'X' '$<' >'$@'
 $(call mg-define-rule,%.x,%,$(value cmd-xgrep))
 
 cmd-addheader = echo 'Header:' | cat - '$<' >'$@'
 $(call mg-define-rule,%.h,%,$(value cmd-addheader))
+
+# Testing obfuscation
+mainoid := $(newoid)
+all: $(mainoid)
+$(mainoid)@opr:=foo.x.h