X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=TODO;h=0cf802f93a18f06ca9bd90ba6d4d8462044010c9;hb=692f7e7a70572c5f4f7242ce721a674a75b34e06;hp=1c9ab88e20afcafafc93b1cbb69bf60fc80be8f6;hpb=4503651d97beda66bcc9aa3242d0ed4dbcd28f6d;p=goals.git diff --git a/TODO b/TODO index 1c9ab88..0cf802f 100644 --- a/TODO +++ b/TODO @@ -6,18 +6,12 @@ Default parameters, ie: You might only allow defaults to be added to the end, or you might allow goals to be called with labelled parameters. -Fix: You must use 'all ()' on the command line. - -"Quiet" code. Generally {CODE} sections in user files should be -echos, and those in stdlib should run silently (except if debugging). -Maybe we should have a quiet keyword to indicate this? - Deleting target files if goals is interrupted, but only if the timestamp changes (what about non-*files?). Also: atomic code. This will delete the target if the code doesn't run to completion. (make doesn't do this, but probably it should). -Implement parallel builds. +Parallel builds: On failure, wait for other jobs to finish. Conditional sections (same as "ifeq" etc in make). @@ -30,12 +24,26 @@ Unclear if this would be helpful or not. Implement more make functions, see: https://www.gnu.org/software/make/manual/html_node/Functions.html#Functions +Split "flags" strings. eg. Currently there is no way to pass +$CFLAGS from autoconf into a goalfile. + Make re-execs itself if the Makefile (or any include) changes, and goals should do something similar. See: https://www.gnu.org/software/make/manual/html_node/Remaking-Makefiles.html Code should be an expression, eg this ought to work: let foo = { echo "hello" } +and/or anonymous functions: +let foo = function (arg) { ... } + +Infinite loop when you have this goal: +goal pod2man (page, section) = "docs/%page.%section" : "docs/%page.pod" { ... } +This is caused by %section matching "pod" so the rule is called +again, even if the local file docs/%page.pod actually exists. + +Implement make-like “eval” function (similar to include directive, +but it evaluates the output of a function as Goalfile syntax). -Should the environment be populated by the actual environment, eg: -let homedir = "%HOME" +Implement make-like “origin” function. This is easy but it requires +us to track to the origin of definitions which we do not do at +the moment. \ No newline at end of file