cwvh/pbsmake — Issue #4: #PBS variable interpolation
Author: cwvh
Created: 2011-12-18 23:24:15+00:00
State: open

Given a PBS makefile:

NAME=target1
target1:
#PBS -N ${NAME}
…

The `#PBS -N ${NAME}` line should be interpolated as `#PBS -N target1`. Correctly implementing this feature would also require adding an escape character for the `#PBS` lines. For example:

NAME=target1
target1:
#PBS -N \${NAME}
…

transforms to:

NAME=target1
target1:
#PBS -N ${NAME}
…

due to the escaping of `${NAME}`.

This feature would likely only need to modify the `cmd` pattern nested in `def parse(…)`