filename=$1; shift
+# strip path to source directory
+filename=`basename $filename`
+
# we need to be sure that the .x file exists
# since the .c/.cc file may include it
# (the old guile-snarf did not have this problem
## We must use a temporary file here, instead of a pipe, because we
## need to know if CPP exits with a non-zero status.
${CPP} -DSCM_MAGIC_SNARFER "$@" > ${temp} || exit $?
-< ${temp} awk -f `dirname $0`/guile-snarf.awk `basename $filename`
+< ${temp} awk -f `dirname $0`/guile-snarf.awk $filename