X-Git-Url: https://mattmccutchen.net/mgear/mgear.git/blobdiff_plain/8d481cf58a5338e6ba62a2e9b4c3b2776071cac0..56467abbb4ff3e0712d7d7c7dc21e6c51745777a:/demo/Makefile diff --git a/demo/Makefile b/demo/Makefile index 947822e..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' '$<' >'$@' -$(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 - '$<' >'$@' -$(call mg-define-rule,%.h,%,$(value cmd-addheader)) +$(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