[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Filename of file being processed from within Lout
From: |
Ludovic Courtès |
Subject: |
Re: Filename of file being processed from within Lout |
Date: |
Mon, 20 Feb 2006 11:42:44 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
Hi,
Tristan Williams <address@hidden> writes:
> Is there any way from Lout of getting the filename of the file being
> processed?
I don't think so. But you can certainly achieve this result by means of
some preprocessing trick. For instance, you could have the following
set of rules in your makefile:
%.lout2: %.lout
echo "def @SourceFileName \"$<\"" > $@ && \
cat $< >> $@
%.ps: %.lout2
lout -o $@ $<
With these rules, when you type `make chbouib.ps', a `chbouib.lout2'
file will first get created where address@hidden' is defined to be the
name of the original source file.
Hope this helps,
Ludovic.