Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Oct 2002 11:57:18 +0200
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   inconsistency in /usr/bin/make
Message-ID:  <20021014095718.GU364@freepuppy.bellavista.cz>

next in thread | raw e-mail | index | archive | help

--5/uDoXvLw7AC5HRs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi there,

continuing my make adventure, I've stumbled across the following
inconsistency. I would even call it a bug.

In any event, could someone point me to a place in the make(1) man page
where it says that the S and C modifiers dereference variables given in
both the pattern and replacement, while the N and M modifiers insist on
being fed literal strings? I couldn't find it. Thanks! :)

-- 
If you cc me or take the list(s) out completely I'll most likely
ignore your message.

--5/uDoXvLw7AC5HRs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=Makefile

NAME=	foo.c
RE=	^.+\.c$
GLOB=	*.c
SUBST=	SUBST
FILES=	foo.a foo.b foo.c

.BEGIN:
	@echo '$${FILES}                     -> ${FILES}'
	@echo '$${NAME}                      -> ${NAME}'
	@echo '$${RE}                        -> ${RE}'
	@echo '$${SUBST}                     -> ${SUBST}'
	@echo '$${GLOB}                      -> ${GLOB}'

all: works broken

works:
	@echo ${.TARGET}:
	@echo '$${FILES:S/$${NAME}/$${SUBST}/} -> ${FILES:S/${NAME}/${SUBST}/}'
	@echo '$${FILES:C/$${RE}/$${SUBST}/}   -> ${FILES:C/${RE}/${SUBST}/}'

broken:
	@echo ${.TARGET}:
	@echo '$${FILES:M$${GLOB}}            -> ${FILES:M${GLOB}}'
	@echo '$${FILES:N$${GLOB}}            -> ${FILES:N${GLOB}}'


--5/uDoXvLw7AC5HRs--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021014095718.GU364>