From owner-freebsd-current Thu Jun 6 15:25:21 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.dada.it (mail4.dada.it [195.110.96.56]) by hub.freebsd.org (Postfix) with SMTP id 8D18737B403 for ; Thu, 6 Jun 2002 15:25:13 -0700 (PDT) Received: (qmail 11605 invoked from network); 6 Jun 2002 22:25:05 -0000 Received: from unknown (HELO torrini.org) (195.110.114.101) by mail.dada.it with SMTP; 6 Jun 2002 22:25:05 -0000 Received: from trudy.torrini.home (localhost.torrini.home [127.0.0.1]) by torrini.org (8.12.3/8.12.3) with ESMTP id g56MPAjV062321 for ; Fri, 7 Jun 2002 00:25:10 +0200 (CEST) (envelope-from riccardo@trudy.torrini.home) Received: (from riccardo@localhost) by trudy.torrini.home (8.12.3/8.12.3/Submit) id g56MP91h062314 for freebsd-current@FreeBSD.ORG; Fri, 7 Jun 2002 00:25:09 +0200 (CEST) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Fri, 07 Jun 2002 00:25:09 +0200 (CEST) From: Riccardo Torrini To: freebsd-current@FreeBSD.ORG Subject: Add a Makefile.user on /usr/src and /usr/ports Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG To support fancy user and they own targets would be nice an infrastructure that check and (if it exist) include a file (named Makefile.user or .local or similar) with personal targets either under /usr/src than /usr/ports. This can save a lot of typing building various things (for example timing build phase or saving logs) only migrating this file from a machine to another. I was able to patch /usr/src/Makefile and /usr/ports/Makefile myself, any comment will be appreciated (even negative ones). TIA, Riccardo. -----[ /usr/src ]----- # diff -u Makefile.orig Makefile --- Makefile.orig Mon Jun 3 21:33:16 2002 +++ Makefile Fri Jun 7 00:21:16 2002 @@ -108,6 +108,10 @@ PATH= /sbin:/bin:/usr/sbin:/usr/bin MAKE= PATH=${PATH} make -m ${.CURDIR}/share/mk -f Makefile.inc1 +.if exists(${.CURDIR}/Makefile.user) +.include "${.CURDIR}/Makefile.user" +.endif + # # Handle the user-driven targets, using the source relative mk files. # -----[ /usr/ports ]----- # diff -u Makefile.orig Makefile --- Makefile.orig Mon Dec 31 02:29:06 2001 +++ Makefile Fri Jun 7 00:12:14 2002 @@ -55,6 +55,9 @@ PORTSTOP= yes .include +.if exists(${.CURDIR}/Makefile.user) +.include "${.CURDIR}/Makefile.user" +.endif index: @rm -f ${.CURDIR}/INDEX To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message