Closed tseemann closed 6 years ago
I would really like .DELETE_ON_ERROR
too. That and .SECONDARY
and .PHONY
are the directives that I make regular use of.
@ihh .DELETE_ON_ERROR
is super useful. See https://www.gnu.org/software/make/manual/html_node/Special-Targets.html
For example
all: foo
.DELETE_ON_ERROR:
foo:
false >$@
❯❯❯ make
false >foo
make: *** [foo] Error 1
make: *** Deleting file `foo'
❯❯❯ cat foo
cat: foo: No such file or directory
❯❯❯ biomake
false >foo
While building foo: Error 1 executing false >foo
❯❯❯ ls foo
foo
.SECONDARY
is the default behaviour with biomake
, which I think is great, so no need for that one.
Woohoo! Thanks, Ian! It's like Christmas again! 🎄
Thanks Ian.
I noticed that
.DELETE_ON_ERROR
is not one of the supportedmake
directives.Any reason?
@sjackman