Quantcast

Makefile magic

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Makefile magic

Andreas.Raab
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
Loading...