Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2013 21:37:15 GMT
From:      Garrett Cooper <yaneurabeya@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/177593: [PATCH] bmake doesn't honor BSDmakefile like pmake does
Message-ID:  <201304022137.r32LbF17068005@red.freebsd.org>
Resent-Message-ID: <201304022140.r32Le03T085829@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177593
>Category:       bin
>Synopsis:       [PATCH] bmake doesn't honor BSDmakefile like pmake does
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 02 21:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Cooper
>Release:        10-CURRENT
>Organization:
EMC Isilon
>Environment:
FreeBSD fuji-current.local 10.0-CURRENT FreeBSD 10.0-CURRENT #7 r+bece424: Sat Mar 30 03:15:47 PDT 2013     root@fuji-current.local:/usr/obj/usr/src/sys/FUJI  i386
>Description:
pmake supports BSDmakefile but bmake doesn't. This patch enhances bmake to support BSDmakefile.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

>From 80a80dc066a2f76b111c30378a064f3e3af56878 Mon Sep 17 00:00:00 2001
From: Garrett Cooper <yanegomi@gmail.com>
Date: Tue, 2 Apr 2013 14:28:03 -0700
Subject: [PATCH] Support BSDmakefile with bmake

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
---
 usr.bin/bmake/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/usr.bin/bmake/Makefile b/usr.bin/bmake/Makefile
index 6cac1ec..ed4a646 100644
--- a/usr.bin/bmake/Makefile
+++ b/usr.bin/bmake/Makefile
@@ -88,6 +88,7 @@ DEFAULT_SYS_PATH?= .../share/mk:${prefix}/share/mk
 
 CPPFLAGS+= -DUSE_META
 CFLAGS+= ${CPPFLAGS}
+CFLAGS+= -DMAKEFILE_PREFERENCE_LIST="\"BSDmakefile makefile Makefile\""
 CFLAGS+= -D_PATH_DEFSYSPATH=\"${DEFAULT_SYS_PATH}\"
 CFLAGS+= -I. -I${srcdir} ${XDEFS} -DMAKE_NATIVE
 CFLAGS+= ${COPTS.${.ALLSRC:M*.c:T:u}}
-- 
1.8.1.3



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304022137.r32LbF17068005>