Hi there,
I hope i'm right on this mailing list with my question about GNU-Make
(3.77)
I'm maintainer of a project which handles different languages. If I
will create a new release all dependencies and destinations may change
if a new languages comes along.
The first step was to define all by hand:
TEST = cvs-de.texi cvs-en.texi cvs-fr.texi cvs-pt.texi
and so on.
The second was the creation rule:
cvs-de.texi: cvs-mlt.texi
multunil --lang=de --replace --texinfo cvs.texi
The above rule I have to copy for every language which came a long.
Then I have read the GNU-Make manual and have read about functions like
foreach and did the following:
,,,
(o o) File: test.mak
---*reiss*------*schnippel*------oOO--(_)--OOo-------*knabber*-----*fetz*---
#Makefile
LANGUAGES=de en fr pt
TEST := $(foreach ln,$(LANGUAGES),cvs-$(ln).texi)
all:
@echo "Test="$(TEST)
---*reiss*------*schnippel*--------------------------*knabber*-----*fetz*---
This workes like I expected. I have only to change the variable
"LANGUAGES".
But now my problem is the dependencie rule like I stated above:
cvs-de.texi: cvs-mlt.texi
multunil --replace --texinfo --lang=de cvs.texi
The above lines only have one thing which changes for every language
"de".
Does there exist a possibility to automate this creation?
Or did I miss something in the GNU-Make-Manual?
IMHO the problem seemed to be that the changing thing is NOT the so
called extension (.texi)
Any suggestions, hints?
Thanks in advance.
--
Jabba dabba dooohhh e-mail: [EMAIL PROTECTED]
'til next mail. Internet: http://www.fido.de/~kama/
Karl Heinz 7:-) Fidonet: 2:2452/110.18
Voice: +49 241 962380