evoldoers / biomake

GNU-Make-like utility for managing builds and complex workflows
BSD 3-Clause "New" or "Revised" License
100 stars 9 forks source link

Support for .DELETE_ON_ERROR ? #46

Closed tseemann closed 6 years ago

tseemann commented 6 years ago

I noticed that .DELETE_ON_ERROR is not one of the supported make directives.

Any reason?

@sjackman

sjackman commented 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.

sjackman commented 6 years ago

@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
sjackman commented 6 years ago

.SECONDARY is the default behaviour with biomake, which I think is great, so no need for that one.

sjackman commented 6 years ago

Woohoo! Thanks, Ian! It's like Christmas again! 🎄

tseemann commented 6 years ago

Thanks Ian.