[Vm-dev] Make question
Andreas Raab
andreas.raab at gmx.de
Tue Sep 5 02:58:01 UTC 2006
Hi Folks -
I'm trying to rework the windows build structure and I'm running into a
problem with make. Basically, what I'm trying to do is to test whether a
file exists in a given location and if so, copy it, and if not, copy a
default from elsewhere. This should look like here:
foo.here:
if $(file-exists locationA/foo.locA)
cp locationA/foo.locA foo.here
else
cp locationB/foo.locB foo.here
endif
I think you get the idea. My problem is that I can't seem to find a
reliable way of expressing the line
if $(file-exists locationA/foo.locA)
in any reasonable way (i.e., by using make's functions). Any ideas how
to convince make to determine whether the file exists or not?
Thanks,
- Andreas
More information about the Vm-dev
mailing list