{"action":"opened","issue":{"url":"https://api.github.com/repos/tonyfischetti/sake/issues/53","labels_url":"https://api.github.com/repos/tonyfischetti/sake/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/tonyfischetti/sake/issues/53/comments","events_url":"https://api.github.com/repos/tonyfischetti/sake/issues/53/events","html_url":"https://github.com/tonyfischetti/sake/issues/53","id":57646271,"number":53,"title":"Weakness with patterns and odd dependency trees","user":{"login":"kirbyfan64","id":1690697,"avatar_url":"https://avatars.githubusercontent.com/u/1690697?v=3","gravatar_id":"","url":"https://api.github.com/users/kirbyfan64","html_url":"https://github.com/kirbyfan64","followers_url":"https://api.github.com/users/kirbyfan64/followers","following_url":"https://api.github.com/users/kirbyfan64/following{/other_user}","gists_url":"https://api.github.com/users/kirbyfan64/gists{/gist_id}","starred_url":"https://api.github.com/users/kirbyfan64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirbyfan64/subscriptions","organizations_url":"https://api.github.com/users/kirbyfan64/orgs","repos_url":"https://api.github.com/users/kirbyfan64/repos","events_url":"https://api.github.com/users/kirbyfan64/events{/privacy}","received_events_url":"https://api.github.com/users/kirbyfan64/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-13T19:57:49Z","updated_at":"2015-02-13T19:57:49Z","closed_at":null,"body":"This is an issue I recently encountered in kernel writing with [Myrddin](http://eigenstate.org/myrddin/). Basically, my makefile is defined like so:\r\n\r\n```make\r\nbuild/%.o build/%.use : src/%.myr\r\n    6m -o build/$*.o $<\r\n\r\nbuild/x.o : build/y.use\r\n```\r\n\r\nBasically, I need to be able to add custom dependencies to specific patterns. I can't do this in Sake, so I had to write out the targets fully. For 4 source files. Which sucks.\r\n\r\nThe idea is to support a syntax like this:\r\n\r\n```yaml\r\n\"build %.o\":\r\n    help: smart stuff here\r\n    dependencies:\r\n        - \"src/%stem.myr\"\r\n    # this is the magic\r\n    dependencies for build/x.o:\r\n        - build/y.use\r\n    output:\r\n        - \"build/%stem.o\"\r\n        - \"build/%stem.use\"\r\n    formula: >\r\n        6m -o build/%stem.o src/%stem.myr\r\n```\r\n\r\nI find it still highly readable."}}