Hello,

This worked for me:

.PRECIOUS: %/.
%/.:
        mkdir -p $@

until I realized (duh) that this has a race condition, which is benign, but I 
would like to avoid it nevertheless.


Well, OK, I tried this, but does not work deeper than 1 level of directories, I 
guess because the chain of implicit rules does not apply (or something of that 
sort)

.PRECIOUS: %/.
.SECONDEXPANSION:
%/.: $$(dir $$*).
        mkdir $* 



So how to do this so that it works, and without racing?


Thank you,

Mark



_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to