Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!elsie!ado
From: ado@elsie.UUCP (Arthur David Olson)
Newsgroups: comp.unix.questions
Subject: Can stuff such as "CFLAGS=-g" be passed to sub-makes?
Message-ID: <7301@elsie.UUCP>
Date: Mon, 22-Dec-86 15:00:55 EST
Article-I.D.: elsie.7301
Posted: Mon Dec 22 15:00:55 1986
Date-Received: Mon, 22-Dec-86 22:53:15 EST
Followup-To: poster
Organization: NIH-LEC, Bethesda, MD
Lines: 14

If I'm doing recursive makes, with a "makefile" rule such as
	whatever whateverelse:
		-cd subdir1 ; $(MAKE) -$(MAKEFLAGS) $@
		-cd subdir2 ; $(MAKE) -$(MAKEFLAGS) $@
is there some way I can arrange things so that if I use the command
	make whatever CFLAGS=-g
the "CFLAGS=-g" will be passed to the sub-makes?

Please mail me any replies, rather than posting an article.  Thanks.
--
UNIX is a registered trademark of AT&T.
--
	UUCP: ..decvax!seismo!elsie!ado   ARPA: elsie!ado@seismo.ARPA
	DEC, VAX, Elsie & Ado are Digital, Borden & Ampex trademarks.