Hi,
Could in the case that :
- executable output directory is changed from the default
- object file output directory is changed from the default
this be refelected in the makefile, so that the
makefile checks that those diretories exist, and if not
they are created ?
Just having the final deliverable be depended on the
directory and having a creation rule (mkdir) with an if
exist statement should be sufficient.
This is very usefull, because when you are working with
a version control system those directories a normally
not present in the version controlled items, the
sources are. So when someone retrieves the sources from
a version control system and wants to build, the
problem arises since on that user's clean system those
directories do not exist.
And with the clean command then, those directories
hould be removed also.
An example I use for normal makefiles (nmake) :
$(OUTDIR) = "my_path_secified"
$(OUT_FILE).a: $(OUTDIR) $(OBJS)
do stuff
"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
Thanks,
Lieven
Logged In: YES
user_id=943591
this would help developers