> 
> gmake
> 
>  will fail, giving 
> 
> gmake: *** No rule to make target `-lfunny_name', needed by `my_program'. 
> Stop.
> 
> while
> 
> "mkdir temp; gmake"
To create a directory I usually do:

obj := temp
# Create output directory if not already present
_dummy := $(shell [ -d $(obj) ] || mkdir -p $(obj))

Works well and I recall it is recommended in make manual too.

        Sam


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to