Subject: arithmetic in make
To: None <tech-toolchain@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-toolchain
Date: 02/25/2007 17:06:51
Hi,
does anyone know if there's a way to do some arithmetic in make ?
Here's my problem: I have a variable with a list of files (with arbitrary
names) that I'd like to copy as file1 file2 file3 ...:
.for file in ${MYFILES}
cp ${file} dir/file{$n}
.endfor
is it possible ?
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--