%% Regarding Q: Changing destinations and dependencies; you wrote:
khm> cvs-de.texi: cvs-mlt.texi
khm> multunil --lang=de --replace --texinfo cvs.texi
khm> The above rule I have to copy for every language which came a long.
Ouch.
khm> LANGUAGES=de en fr pt
khm> TEST := $(foreach ln,$(LANGUAGES),cvs-$(ln).texi)
This will work, but isn't necessary. You can much more
straightforwardly use functions such as patsubst, since you're just
performing a simple transformation on one set of words into another.
Try this:
LANGUAGES = de en fr pt
TEST = $(LANGUAGES:%=cvs-%.texi)
khm> Does there exist a possibility to automate this creation?
Yes.
khm> Or did I miss something in the GNU-Make-Manual?
Yes.
khm> IMHO the problem seemed to be that the changing thing is NOT the so
khm> called extension (.texi)
If you use pattern rules, you can represent any one section of the
name.
khm> Any suggestions, hints?
cvs-%.texi: cvs-mlt.texi
multunil --lang=$* --replace --texinfo cvs.texi
I don't understand why the target depends on cvs-mult.texi, but then
uses cvs.texi in the command... ?
Anyway, look up pattern rules in the GNU make manual.
--
-------------------------------------------------------------------------------
Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at:
http://www.gnu.org http://www.ultranet.com/~pauld/gmake/
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist