# Very simple mgear example include mgear.mk .SECONDARY: all: cmd-xgrep = grep 'X' '$<' >'$@' && echo "Hello world from xgrep" $(call mg-define-rule,%.x,%,cmd-xgrep) 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,.) .PHONY: clean