Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.os.unix > #8072

Makefiles : arguments de fonctions

Path csiph.com!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Thomas <fantome.forums.tDeContes@free.fr.invalid>
Newsgroups fr.comp.os.unix
Subject Makefiles : arguments de fonctions
Date Sat, 06 May 2023 04:26:41 +0200
Organization A noiseless patient Spider
Lines 34
Message-ID <fantome.forums.tDeContes-F96732.04264106052023@news.eternal-september.org> (permalink)
MIME-Version 1.0
Content-Type text/plain; charset=ISO-8859-15
Content-Transfer-Encoding 8bit
Injection-Info dont-email.me; posting-host="8dca5756c298cf1eafca6f772a1b719f"; logging-data="2834621"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180B8FvL/E0v/dliHwVqmO9eUD5MYsabPA="
User-Agent MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Cancel-Lock sha1:KmuJuB307yT4oH5ZUwK3x9b8gPM=
Mail-Copies-To nobody
Xref csiph.com fr.comp.os.unix:8072

Show key headers only | View raw


bonjour :-)


f1 = $1 $2
f2 = $(call f1,$1)

$(info '$(f1)')
$(info '$(call f1,a,b)')
$(info '$(call f1,a)')
$(info '$(call f2,a)')
$(info '$(call f2,a,b)')


$ make 2='c'


chez moi ça donne :

' c'
'a b'
'a c'
'a c'
'a '

c'est bizarre, le fait d'appeler f2 avec 2 arguments écrase le 2 de la 
CLI, et est ensuite annulé par l'appel à f1 ... alors que l'appel à f1 
seul n'inquiète pas 2 !

pareil chez vous ?
une explication logique ?

-- 
RAPID maintainer
http://savannah.nongnu.org/projects/rapid/

Back to fr.comp.os.unix | Previous | Next | Find similar | Unroll thread


Thread

Makefiles : arguments de fonctions Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2023-05-06 04:26 +0200

csiph-web