From owner-freebsd-hackers Wed Mar 3 2:32:21 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from bulls.mei.co.jp (bulls.mei.co.jp [202.224.189.102]) by hub.freebsd.org (Postfix) with ESMTP id B577D14F45 for ; Wed, 3 Mar 1999 02:32:17 -0800 (PST) (envelope-from takamune@avrl.mei.co.jp) Received: by bulls.mei.co.jp (8.9.1/3.7W) with ESMTP id TAA09946 for ; Wed, 3 Mar 1999 19:31:50 +0900 (JST) Received: by dodgers.mei.co.jp (8.9.1/3.7W) with SMTP id TAA02055 for ; Wed, 3 Mar 1999 19:31:49 +0900 (JST) Received: by avrlgate1.avrl.mei.co.jp (8.6.10+2.4W/3.3W3-avrl3.0) id TAA12321; Wed, 3 Mar 1999 19:30:57 +0900 To: hackers@FreeBSD.ORG Subject: Special source '.MAKE' From: Kazu TAKAMUNE X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990303193059O.takamune@avrl.mei.co.jp> Date: Wed, 03 Mar 1999 19:30:59 +0900 X-Dispatcher: imput version 980905(IM100) Lines: 44 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Does make(1)'s special source (not local variable) '.MAKE' work validly ? I have a try as follows: % cat Makefile doit: .MAKE ${MAKE}${MAKEFLAGS} sub sub: uname % make doit make sub uname FreeBSD % make -n doit make -n sub I expect last result to be make -n sub uname 'Recursive make' will be widely applicable to our development. Apparently it seems that these codes are ... % cd /usr/src/usr.bin/make % grep -n '\.MAKE[^F]' *.[ch] parse.c:215:{ ".MAKE", Attribute, OP_MAKE }, str.c:60: argv[0] = Var_Value(".MAKE", VAR_GLOBAL, &p1); str.c:135: * the first word is always the value of the .MAKE variable. % grep -n 'OP_MAKE' *.[ch] job.c:530: noSpecials = (noExecute && !(job->node->type & OP_MAKE)); job.c:1719: if ((gn->type & OP_MAKE) || (!noExecute && !touchFlag)) { make.h:188:#define OP_MAKE 0x00000200 /* Target is a recurrsive make so its parse.c:215:{ ".MAKE", Attribute, OP_MAKE }, parse.c:231:{ ".RECURSIVE", Attribute, OP_MAKE }, --- With best regards. TAKAMUNE Kazutoki takamune@avrl.mei.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message