inputfile ()
inputfile ("prefix
")
Return name of input file.
If constant string prefix
is provided, a concatenation of
prefix
and input file is returned. Generally, you can simply
use the former syntax and concatenate the strings (prefix
+ inputfile()) but - if you use Cows-mkgen to create
makefiles - functions introducing dependencies (verbatim (), include (), fdate (), fsize ()) need a constant string or the inputfile () and outputfile ()
functions.
So, the expression fdate (inputfile ("../")) is safe, while fdate ("../" + inputfile()) will result in a missing dependency. Remember that Cows-mkgen tells you about this missing dependency raising a warning.
This manual can be downloaded from http://www.g-cows.org/.