From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 27 17:15:56 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43E6D106564A for ; Tue, 27 Sep 2011 17:15:56 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0F5568FC0C for ; Tue, 27 Sep 2011 17:15:55 +0000 (UTC) Received: by iadk27 with SMTP id k27so9523347iad.13 for ; Tue, 27 Sep 2011 10:15:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=th7W3lgLrRCtA53RpsDi0AHXu7cTl3f5fxIjcoHNQN0=; b=xS2FCW158RyVpkkFAkylusjKHF3nC6jf+52Zk8DQvIOiC+aPTVBSeQUO7aNxk3HP8N TZmJ/kuvkuAk9vVjtFmsArrRl3GxUNICEWuwDAO7O1jGKSFrMDdf/FssNfkT9vawnSaI /714+M+L4iQ87ND4Bk9UaA8RsuZmlKWDGl200= Received: by 10.231.65.73 with SMTP id h9mr11053693ibi.21.1317143755147; Tue, 27 Sep 2011 10:15:55 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.231.35.194 with HTTP; Tue, 27 Sep 2011 10:15:25 -0700 (PDT) In-Reply-To: <20110927.162348.046.5@DEV> References: <20110927.093117.140.1@DEV> <86mxdq2tgj.fsf@gmail.com> <20110927.112343.546.2@DEV> <20110927.162348.046.5@DEV> From: Chris Rees Date: Tue, 27 Sep 2011 18:15:25 +0100 X-Google-Sender-Auth: 63AyaeH96VaV85_ban_0TRTtg9k Message-ID: To: rank1seeker@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Cc: hackers@freebsd.org Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 17:15:56 -0000 On 27 September 2011 17:23, wrote: > ----- Original Message ----- > From: Chris Rees > To: rank1seeker@gmail.com > Cc: h h , hackers@freebsd.org > Date: Tue, 27 Sep 2011 17:16:57 +0100 > Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used > >> On 27 Sep 2011 12:24, wrote: >> > >> > ----- Original Message ----- >> > From: h h >> > To: rank1seeker@gmail.com >> > Cc: hackers@freebsd.org >> > Date: Tue, 27 Sep 2011 10:03:08 +0000 >> > Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is > used >> > >> > > rank1seeker@gmail.com writes: >> > > >> > > > cd /usr/src >> > > > >> > > > This works: >> > > > -- >> > > > # echo 'CPUTYPE?=core2 >> > > > CFLAGS+=-march=native >> > > > NO_CPU_CFLAGS=yes >> > > > COPTFLAGS+=-march=native >> > > > NO_CPU_COPTFLAGS=yes' | /usr/bin/make __MAKE_CONF=/dev/null -f - -V >> > CPUTYPE >> > > > -- >> > > [...] >> > > >> > > No, it doesn't. >> > > >> > > According to make(1) manpage, it reads BSDmakefile, makefile or > Makefile >> > > unless -f is specified. >> > >> > Well, via STDIN, I've attempted to feed it, with syntaks from a >> 'make.conf' >> > file, so I wouldn't have to provide file, via __MAKE_CONF. >> > Looking again in man pages, I see that -f flag relates to Makefile > syntaks >> > and NOT to the make.conf. >> > >> >> Yes, it means that make reads the Makefile from stdin instead of from the >> Makefile; if you use -f then the Makefile isn't read -- the make.conf has >> nothing to do with -f. >> >> What have you misunderstood? As far as I can see, you're contradicting >> yourself. >> >> Chris > > > The point is, that I've gave answer to myself. > I figured it out, a little bit later ..., so it is solved now. > Thank you all. Great to hear it's solved, and thanks for letting us know. Makefiles can be confusing territory at times. Chris