Closed sjackman closed 6 years ago
With GNU Make I use this feature to time each command using zsh
like so:
export SHELL=zsh -opipefail
export REPORTTIME=1
export TIMEFMT=time user=%U system=%S elapsed=%E cpu=%P memory=%M job=%J
In the mean time, does biomake
define a variable that I could use to skip incompatible syntax? For example…
ifndef BIOMAKE
export SHELL=zsh -opipefail
export REPORTTIME=1
export TIMEFMT=time user=%U system=%S elapsed=%E cpu=%P memory=%M job=%J
endif
GNU Make defines the variable MAKE_VERSION
, so I can use ifdef MAKE_VERSION
. Could Biomake please define BIOMAKE_VERSION
?
Using ifdef
to skip incompatible syntax doesn't unfortunately work as I had hoped, because biomake
still parses the text inside the conditional, even when the conditional is false.
Shouldn’t be hard to mimic export syntax. Sorry have been inattentive to biomake issues, will take a look at this tomorrow too
Thanks, Ian! While you're looking at export
, I also occasionally use override
. e.g.
override foo=bar
The result is to set foo
to bar
even when biomake foo=ook
is specified on the command line. This issue is low priority for me. The workaround is simply to remove the override
keyword, which is usually fine.
This should work now @sjackman. You could open fresh issues for override
and/or unexport
if you decide you do need them.
Thank you, Ian! 🎈
A GNU Makefile can set an environment variable like so: