I am searching a make like build tool that supports (besides usual make features):
- Automatic deletion of temporary created files (like in GNU make for example)
- Regular expressions in rule patterns (like e.g. in Cook
About 1: By default GNU make deletes temporary files. For example have these rules:
%.c: %.y
some-comand
%.o: %.c
some-comand
If you have a file foo.y and call make foo.o then make derives that is has to create first foo.c and then foo.o. After it is ready it delete the temporary file foo.c.
Cook does not support this.
About 2: Make just support suffix pattern style rules. For example like this (equivalent notations):
%.o: %.c
some-comand
.c.o: some-comand
Allowing regular expressions in rules of patterns is of course more powerful. Pseudo-code examples:
foo.+bar.o: foo.+bar.c
some-comand
foo\1bar.o: foo(.+)bar.c
some-comand
The first rule matches (and its command is executed) if for example fooXXXbar.o is needed and fooYYYbar.c exists (or make knows how to create it. The second rule matches, if for example fooXXXbar.o is needed and fooXXXbar.c exists.
Do you know a build that supports these features?