Date: Fri, 07 Jun 2002 00:25:09 +0200 (CEST) From: Riccardo Torrini <riccardo@torrini.org> To: freebsd-current@FreeBSD.ORG Subject: Add a Makefile.user on /usr/src and /usr/ports Message-ID: <XFMail.20020607002509.riccardo@torrini.org>
next in thread | raw e-mail | index | archive | help
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 <bsd.port.subdir.mk>
+.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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020607002509.riccardo>
