Makefile magic

View: New views
1 Messages — Rating Filter:   Alert me  

Makefile magic

by Andreas Raab :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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