[Omake] Wildcards in functions used within dependencies
John Billings
jnb26 at cam.ac.uk
Sun Aug 26 06:39:53 PDT 2007
Hello,
I'd like to specify a rule of the form:
%.done: $(CProgram %, %)
./$< && touch $@
The problem is that the `%' does not appear to be recognised as a
wildcard within the CProgram function call; it's interpreted as the
literal value `%', and hence compilation fails with:
Do not know how to build "%.o" required for "%"
One possible fix is to instead depend upon %$(EXE), and also define my
own rule for compiling a C program. However, this seems inelegant. Can
you recommend a better solution?
Cheers,
John
More information about the Omake
mailing list