%% Cesar Crusius <[EMAIL PROTECTED]> writes:
cc> Ah, thanks. Sorry I forgot to mention it was 3.80. That explains
cc> it. Unfortunatly I can't upgrade the company's computers,
Often it's useful to keep the build environment in a completely
separate, controlled installation area rather than relying on whatever
version the vendor happens to ship.
cc> but a little hack will take care of it.
In the past when I've wanted directories created "on the fly" I've
simply used the $(shell ...) function to do it, as in:
...
MKDIRS += $(objdir)/moc
...
__dummy := $(shell for d in $(MKDIRS); do [ -d $$d ] || mkdir -p $$d; done)
or whatever.
This has the disadvantage of always creating all directories, even if
they're not used, but the advantage that you never need to worry about
making sure they're created in the correct order.
--
-------------------------------------------------------------------------------
Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make