Subject: make files with : in file names
To: None <tech-userlevel@netbsd.org>
From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
List: tech-userlevel
Date: 12/19/2001 22:09:08
I have a makefile, attached below.
I have : in my file names. Is there a way to escape these colons in the
targets? I also tried putting " around the targets. I can rename the file
names, but there is an obvious reason why using : is better.
I also tried putting the names into a variable, but I didn't expect that
to work.

SIGNDEBUG=
DBC08B2E21=sandel/db.2002:c08b:2e21.rev
SIGNEDFILES+=sandel/db.sandelman.ottawa.on.ca.signed
SIGNEDFILES+=sandel/db.dasblinkenled.org.signed
SIGNEDFILES+=sandel/db.46.139.192.in-addr.arpa.signed
SIGNEDFILES+=${DBC08B2E21}.signed
SIGNEDFILES+=sandel/db.2001:410:402.rev.signed
TIME=time

all:	${SIGNEDFILES}
.PRECIOUS: ${SIGNEDFILES}

sandel/db.sandelman.ottawa.on.ca.signed: sandel/db.sandelman.ottawa.on.ca
	${TIME} dnssec-signzone ${SIGNDEBUG} -d sandel -o sandelman.ottawa.on.ca sandel/db.sandelman.ottawa.on.ca sandel/Ksandelman.ottawa.on.ca.+001+21577.private

sandel/db.dasblinkenled.org.signed: sandel/db.dasblinkenled.org
	${TIME} dnssec-signzone ${SIGNDEBUG} -d sandel -o dasblinkenled.org sandel/db.dasblinkenled.org sandel/Kdasblinkenled.org.+001+25849.private

sandel/db.46.139.192.in-addr.arpa.signed: sandel/db.46.139.192.in-addr.arpa
	${TIME} dnssec-signzone ${SIGNDEBUG} -d sandel -o 46.139.192.in-addr.arpa sandel/db.46.139.192.in-addr.arpa sandel/K46.139.192.in-addr.arpa.+001+28815.private

${DBC08B2E21}.signed: ${DBC08B2E21}
	${TIME} dnssec-signzone ${SIGNDEBUG} -d sandel -o 1.2.e.2.b.8.0.c.2.0.0.2.ip6.int sandel/db.2002:c08b:2e21.rev sandel/K1.2.e.2.b.8.0.c.2.0.0.2.ip6.int.+001+57781.private

sandel/db.2001\:410\:402.rev.signed: sandel/db.2001\:410\:402.rev
	${TIME} dnssec-signzone ${SIGNDEBUG} -d sandel -o 2.0.4.0.0.1.4.0.1.0.0.2.ip6.int sandel/db.2001:410:402.rev sandel/K2.0.4.0.0.1.4.0.1.0.0.2.ip6.int.+001+24396.private