X-Git-Url: https://mattmccutchen.net/mgear/mgear.git/blobdiff_plain/ff59f3cf9dd552edf18931d41a491b2c6e495c99..b811570b2cb4d27923b09d8b2e286dd234f5fab0:/demo/Makefile diff --git a/demo/Makefile b/demo/Makefile index b8a7ab7..ff220b6 100644 --- a/demo/Makefile +++ b/demo/Makefile @@ -1,18 +1,24 @@ -# Very simple Mage example +# Very simple mgear example -include mage.mk +include mgear.mk .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 +$(mainoid)@ocmd:= + +clean: + $(call mg-clean-cmd,.) +.PHONY: clean + \ No newline at end of file