Makefile magic

Andreas Raab andreas.raab at gmx.de
Wed Apr 12 04:47:34 UTC 2006


Hi Guys -

For a while now I wanted to be able to switch to an (optional) 
per-plugin Makefile is such a Makefile existed. I've been trying to come 
to terms with make on this but to no regard. Essentially what I tried 
was something like here:

# make FooPlugin.dll
%.dll:
if $(exists plugins/$*/Makefile.win32)
#	invoke Makefile.win32
else
#	do it without Makefile.win32
endif

The trouble is I can't seem to find a way of determining whether the 
file actually exists. Any ideas?

Cheers,
   - Andreas



More information about the Vm-dev mailing list