{"action":"created","issue":{"url":"https://api.github.com/repos/fastbuild/fastbuild/issues/545","repository_url":"https://api.github.com/repos/fastbuild/fastbuild","labels_url":"https://api.github.com/repos/fastbuild/fastbuild/issues/545/labels{/name}","comments_url":"https://api.github.com/repos/fastbuild/fastbuild/issues/545/comments","events_url":"https://api.github.com/repos/fastbuild/fastbuild/issues/545/events","html_url":"https://github.com/fastbuild/fastbuild/issues/545","id":433588318,"node_id":"MDU6SXNzdWU0MzM1ODgzMTg=","number":545,"title":"How to make a \"clean\" target","user":{"login":"ggnkua","id":5121492,"node_id":"MDQ6VXNlcjUxMjE0OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/5121492?v=4","gravatar_id":"","url":"https://api.github.com/users/ggnkua","html_url":"https://github.com/ggnkua","followers_url":"https://api.github.com/users/ggnkua/followers","following_url":"https://api.github.com/users/ggnkua/following{/other_user}","gists_url":"https://api.github.com/users/ggnkua/gists{/gist_id}","starred_url":"https://api.github.com/users/ggnkua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggnkua/subscriptions","organizations_url":"https://api.github.com/users/ggnkua/orgs","repos_url":"https://api.github.com/users/ggnkua/repos","events_url":"https://api.github.com/users/ggnkua/events{/privacy}","received_events_url":"https://api.github.com/users/ggnkua/received_events","type":"User","site_admin":false},"labels":[{"id":190299607,"node_id":"MDU6TGFiZWwxOTAyOTk2MDc=","url":"https://api.github.com/repos/fastbuild/fastbuild/labels/Question","name":"Question","color":"159818","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-04-16T05:21:13Z","updated_at":"2019-04-18T06:58:21Z","closed_at":null,"author_association":"NONE","body":"First of all, thanks for this great tool!\r\n\r\nAs a part of migrating our build system away from makefiles, we stumbled across the subject's title: people are used to \"make clean\" to wipe all object files etc. So I tried creating an \"Exec\" to perform this, but I'm baffled! Here's what I got so far:\r\n\r\n```\r\nExec( \"clean\" )\r\n{\r\n  .ExecExecutable          = \"/bin/rm\"  ; Executable to run\r\n  .ExecInputPattern        = \"*.o\" ; (optional) Pattern(s) to use when finding files (default *.*)\r\n  .ExecInputPathRecurse    = true  ; (optional) Recurse into dirs when finding files (default true)\r\n  .ExecArguments           = \"-f\"  ; (optional) Arguments to pass to executable\r\n  .ExecInput               = \"*.o\" ; (optional) Input file(s) to pass to executable\r\n  .ExecOutput              = \"test\" ; Output file generated by executable\r\n}\r\n```\r\n\r\nBasically I would like to recurse all directories and wipe all .o files. However, I can't see the input pattern generating any lists to pass to \"rm\". Running ```./fbuild clean -showcmds``` gives:\r\n\r\n```\r\nBFF file '{...}/fbuild.bff' has changed (reparsing will occur).\r\n1> Run: {...}/test\r\n/bin/rm -f \r\nWorkingDir: \r\nExpectedReturnCode: 0\r\n1> File missing despite success for '{...}/test'\r\nFBuild: Error: BUILD FAILED: clean                             \r\nTime: 0.022s\r\n```\r\n\r\n(absolute paths removed using {...}). Obviously I'm doing something wrong, but I can't figure out what! Can anyone assist?\r\n\r\nP.S. Ultimately I do have the source files as lists so I could do something like a pattern replace (for example cpp->o) and then feed them to rm, but it seems a bit convoluted to me."},"comment":{"url":"https://api.github.com/repos/fastbuild/fastbuild/issues/comments/484380226","html_url":"https://github.com/fastbuild/fastbuild/issues/545#issuecomment-484380226","issue_url":"https://api.github.com/repos/fastbuild/fastbuild/issues/545","id":484380226,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NDM4MDIyNg==","user":{"login":"psomadop","id":34111635,"node_id":"MDQ6VXNlcjM0MTExNjM1","avatar_url":"https://avatars1.githubusercontent.com/u/34111635?v=4","gravatar_id":"","url":"https://api.github.com/users/psomadop","html_url":"https://github.com/psomadop","followers_url":"https://api.github.com/users/psomadop/followers","following_url":"https://api.github.com/users/psomadop/following{/other_user}","gists_url":"https://api.github.com/users/psomadop/gists{/gist_id}","starred_url":"https://api.github.com/users/psomadop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psomadop/subscriptions","organizations_url":"https://api.github.com/users/psomadop/orgs","repos_url":"https://api.github.com/users/psomadop/repos","events_url":"https://api.github.com/users/psomadop/events{/privacy}","received_events_url":"https://api.github.com/users/psomadop/received_events","type":"User","site_admin":false},"created_at":"2019-04-18T06:58:21Z","updated_at":"2019-04-18T06:58:21Z","author_association":"NONE","body":"Thanks for the helpful feedback ffulin!"}}
{"actor":{"display_login":"psomadop"}}