[Top][All Lists]

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

Re: make -t and directories

From: Dmitry Goncharov
Subject: Re: make -t and directories
Date: Sat, 11 Mar 2023 08:36:02 -0500

On Fri, Mar 10, 2023 at 7:55 PM Alejandro Colomar
<alx.manpages@gmail.com> wrote:
> How about using `mkdir -p` instead of touch(1) for nonexistent files?

mkdir -p would create a directory where a file is supposed to be.
Let's say you have hello.c, but no hello.o.If you run make -t it'll
create an empty hello.o. Then you can update hello.c and run make
again and it'll build a new hello.o from the new hello.c. If there
was a directory called 'hello.o' then a file 'hello.o' cannot be

In your particular case, why don't you build your directories before
you run make -t?
$ make dir
$ make -t

regards, Dmitry

reply via email to

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