Date: Fri, 08 Sep 2000 23:53:07 -0700 From: Craig Leres <leres@ee.lbl.gov> To: FreeBSD-gnats-submit@freebsd.org Cc: leres@ee.lbl.gov (Craig Leres) Subject: bin/21142: [PATCH] avoid errors from "make objlink" when NOOBJ is defined Message-ID: <200009090653.e896r7S00931@fun.ee.lbl.gov>
next in thread | raw e-mail | index | archive | help
>Number: 21142 >Category: bin >Synopsis: [PATCH] avoid errors from "make objlink" when NOOBJ is defined >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Sep 09 00:00:02 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Craig Leres >Release: FreeBSD 4.1-RELEASE i386 >Organization: Lawrence Berkeley National Laboratory >Environment: >Description: If NOOBJ is defined, make does not try to make an obj directory. However it still tries to make an objlink. >How-To-Repeat: fun 401 % cd /usr/src/share/dict fun 402 % make obj objlink No /usr/obj/usr/src/share/dict to link to - do a make obj. >Fix: Context diffs to share/mk/bsd.obj.mk are appended. This Make objlink work like obj (a noop when NOOBJ is defined). =================================================================== RCS file: RCS/bsd.obj.mk,v retrieving revision 1.1 diff -c -r1.1 bsd.obj.mk *** bsd.obj.mk 2000/09/09 06:42:52 1.1 --- bsd.obj.mk 2000/09/09 06:49:56 *************** *** 79,84 **** --- 79,87 ---- .endif .if !target(objlink) + .if defined(NOOBJ) + objlink: + .else objlink: _SUBDIR @if test -d ${CANONICALOBJDIR}/; then \ rm -f ${.CURDIR}/obj; \ *************** *** 86,91 **** --- 89,95 ---- else \ echo "No ${CANONICALOBJDIR} to link to - do a make obj."; \ fi + .endif .endif # >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009090653.e896r7S00931>