Jeremy Cowgar
2009-09-12 15:12:07 UTC
I am having problems setting up my own define rule. The problem I have is that
bakefile says: "error: failed to set variable '__s' to value '$(__source)':
name '__source' is not defined"
The rule I have created is:
<define-rule name="euphoria" extends="action">
<template>
<is-phony />
<set var="__build_dir">$(id)_dir</set>
<set var="__output">..$(DIRSEP)$(id)$(EXE_EXT)</set>
<set var="__lib">..$(DIRSEP)eu$(LIB_EXT)</set>
<set var="__include">..$(DIRSEP)include</set>
<command>eui ec.ex -con $(EUC_FLAGS) -i $(__include) -builddir
$(__build_dir) -keep -o $(__output) -lib $(__lib) $(__source)</command>
<dependency-of>all</dependency-of>
</template>
<define-tag name="source">
<set var="__source">$(value)</set>
</define-tag>
</define-rule>
An example use of the rule is:
<euphoria id="eui">
<source>int.ex</source>
</euphoria>
Can anyone shed some light on what I am doing wrong?
Thanks,
Jeremy
bakefile says: "error: failed to set variable '__s' to value '$(__source)':
name '__source' is not defined"
The rule I have created is:
<define-rule name="euphoria" extends="action">
<template>
<is-phony />
<set var="__build_dir">$(id)_dir</set>
<set var="__output">..$(DIRSEP)$(id)$(EXE_EXT)</set>
<set var="__lib">..$(DIRSEP)eu$(LIB_EXT)</set>
<set var="__include">..$(DIRSEP)include</set>
<command>eui ec.ex -con $(EUC_FLAGS) -i $(__include) -builddir
$(__build_dir) -keep -o $(__output) -lib $(__lib) $(__source)</command>
<dependency-of>all</dependency-of>
</template>
<define-tag name="source">
<set var="__source">$(value)</set>
</define-tag>
</define-rule>
An example use of the rule is:
<euphoria id="eui">
<source>int.ex</source>
</euphoria>
Can anyone shed some light on what I am doing wrong?
Thanks,
Jeremy