help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to handle ':' in filenames?


From: Peng Yu
Subject: How to handle ':' in filenames?
Date: Wed, 16 Mar 2011 19:29:26 -0700

Hi,

I'm trying to handle filenames with ':' in it. But neither of the
following two ways work. Could anybody let me know if there is a way
to hand filenames with ':' using make?

.PHONY: all

colon:=:
foo:=abc_xyz.txt
bar:=$(subst _,$(colon),$(foo))

all: $(bar)

$(bar):
        touch $@

#Neither the above nor the below works.
#all: abc$(colon)xyz.txt
#
#abc$(colon)xyz.txt:
#       touch $@


-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]