Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

freebsd-stable Digest, Vol 351, Issue 10

2 views
Skip to first unread message

freebsd-sta...@freebsd.org

unread,
Apr 11, 2010, 8:00:23 AM4/11/10
to freebsd...@freebsd.org
Send freebsd-stable mailing list submissions to
freebsd...@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
or, via email, send a message with subject or body 'help' to
freebsd-sta...@freebsd.org

You can reach the person managing the list at
freebsd-st...@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-stable digest..."


Today's Topics:

1. Different behavior of make(1) between command line argument
and .MAKEFLAGS special target (Lin Jui-Nan Eric)


----------------------------------------------------------------------

Message: 1
Date: Sun, 11 Apr 2010 16:11:42 +0800
From: Lin Jui-Nan Eric <eri...@tamama.org>
Subject: Different behavior of make(1) between command line argument
and .MAKEFLAGS special target
To: sta...@freebsd.org
Message-ID:
<y2q47713ee11004110111qa...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi listers,
Recently I found that there's different behavior of specifying -j1 in
command line argument and special target ".MAKEFLAGS".

According to section "SPECIAL TARGETS" in manpage of make(1):

.MAKEFLAGS This target provides a way to specify flags for make when the
makefile is used. The flags are as if typed to the shell,
though the -f option will have no effect. Flags (except for
-f) and variable assignments specified as the source for this
target are also appended to the .MAKEFLAGS internal variable.
Please note the difference between this target and the
.MAKEFLAGS internal variable: specifying an option or variable
assignment as the source for this target will affect
both the current makefile and all processes that make executes.

The behavior should be same while specifying flags in Makefile and
typed to the shell.
But when I try to set "-j" in Makefile, the behavior is different.

I have filed a PR and send a patch
(http://www.freebsd.org/cgi/query-pr.cgi?pr=144388).
Any suggestion is welcomed.

Sincerely,

Jui-Nan Eric Lin


------------------------------


End of freebsd-stable Digest, Vol 351, Issue 10
***********************************************

0 new messages