help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make -B and the order-only prerequisites


From: Rhys Ulerich
Subject: Re: make -B and the order-only prerequisites
Date: Mon, 30 Apr 2012 20:24:47 -0500

> How about having the command in the rule
> only create the directory if it doesn't exist?
>
> DIRS = obj bin
> $(DIRS):
>        test -d $@ || mkdir $@

'mkdir -p' also comes to mind.

- Rhys



reply via email to

[Prev in Thread] Current Thread [Next in Thread]