X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=TODO;h=992f8e39e1a0ba64cde74a1f4d5a487e0a5c0424;hb=349ba0ff3bded60e8035d5896a6d5f689a632ae7;hp=0c67dcdbbde2f2ef96b73ab7956cdbd32d45a6cb;hpb=6a90be28a5705ab13dc5cf161b659acfb05ef34b;p=goals.git diff --git a/TODO b/TODO index 0c67dcd..992f8e3 100644 --- a/TODO +++ b/TODO @@ -1,12 +1,42 @@ -'let :=' for immediate evaluation in assignment. Does this work -for included files? +'let :=' for immediate evaluation in assignment. Does this work for +included files? Also ?= to only override if not already defined. Default parameters, ie: goal foo (name, release = true) = ... You might only allow defaults to be added to the end, or you might allow goals to be called with labelled parameters. -Functions, eg. wildcard("*.c"). These should be defined as shell -scripts with a selection of common functions defined in stdlib. +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). -Fix: You must use 'all ()' on the command line. +Parallel builds: On failure, wait for other jobs to finish. + +Conditional sections (same as "ifeq" etc in make). + +Let within functions and goals, eg: + function foo () = + let temp = "%bar%baz"; + { .... } +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.