tech-toolchain archive

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

Re: make: creating a file's parent directory



BM> I'm pretty sure that mkdir -p doesn't touch the directory if it already 
BM> exists.  Thus, you should be able to use rules like
BM> 
BM> dir:
BM> 	mkdir -p ${.TARGET}
BM> 
BM> dir/file: dir
BM> 	do_stuff

That has the problem of
EF> but that causes dir/file's rule to be re-run if you touch dir/another_file, 
EF> thus updating dir's time stamp.
right?


Home | Main Index | Thread Index | Old Index