Subject: arithmetic in make
To: None <>
From: Manuel Bouyer <>
List: tech-toolchain
Date: 02/25/2007 17:06:51
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}
is it possible ?

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference