From owner-freebsd-hackers Sat Jan 4 16:52:11 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4FA237B401 for ; Sat, 4 Jan 2003 16:52:10 -0800 (PST) Received: from clover.kientzle.com (user-112uh9a.biz.mindspring.com [66.47.69.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A25243EB2 for ; Sat, 4 Jan 2003 16:52:10 -0800 (PST) (envelope-from kientzle@acm.org) Received: from acm.org (c43 [66.47.69.43]) by clover.kientzle.com (8.11.3/8.11.3) with ESMTP id h050q2E44605 for ; Sat, 4 Jan 2003 16:52:02 -0800 (PST) (envelope-from kientzle@acm.org) Message-ID: <3E1781B2.6090005@acm.org> Date: Sat, 04 Jan 2003 16:52:02 -0800 From: Tim Kientzle Reply-To: kientzle@acm.org User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.6) Gecko/20011206 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Subject: Makefile Style Questions Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Is there any documentation similar to style(9) that specifically addresses Makefile style issues? In particular, I'm wrapping up my work on /rescue, which is mostly a lot of Makefile hacking, and I want to make sure I'm not violating any taboos. ;-) 1) Is there an accepted use for 'COPTS'? My current draft adds COPTS support to bsd.lib.mk. I can then use COPTS to add flags when I re-compile portions of the source tree for /rescue. I could instead create a new Makefile variable and add it to bsd.prog.mk and bsd.lib.mk if there is an existing convention for use of COPTS. 2) I notice that some existing preprocessor and Makefile variables use leading underscores, some don't. Is there a specific style convention on this? Thanks for pointers, Tim Kientzle To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message