[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Include problem



Hi all,
I hope my bad english will be understandable.

I have a problem with include files. 

Basically I want include a file -if it exist- otherwise include a
default file
#include file.inc (if it exist) else include default.inc
(the name of the file to be included has to be defined run-time)

>From wml_p1_ipp

$(name:-string)
`Use Default String': The standard interpolation with
a default value.

 if (exists(name))
     expandto(valueof(name))
 else
     expandto(string)
But

#include "$($(WML_SRC_BASENAME).inc:-default.inc)"

include default.inc all the time (also if $(WML_SRC_BASENAME).inc
exist)
It seems $(WML_SRC_BASENAME).inc inside $(name:-string) will be expanded 
to nothing.

what i am doing wrong, here?

Ciao, Alvise
--
| Alvise Belotti                     |   /"\  .  ASCII Ribbon Campaign .
| E-mail:   alvise@laventa.it        |   \ /  .- NO HTML/RTF in e-mail .
| La Venta: http://www.laventa.it    |    X   .- NO Word docs in e-mail.
| E-mail:   info@laventa.it          |   / \  .. . . . . . . . . . . . .
| PGP Key fingerprint = AD 85 93 92 A9 9C 93 14  9C 6B 3B 15 52 79 B8 BD
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com