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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to