From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 07:04:24 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE8AD106566B for ; Wed, 28 Sep 2011 07:04:24 +0000 (UTC) (envelope-from aakuusta@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9ACA98FC16 for ; Wed, 28 Sep 2011 07:04:24 +0000 (UTC) Received: by gyf2 with SMTP id 2so7551815gyf.13 for ; Wed, 28 Sep 2011 00:04:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:subject:in-reply-to:date:message-id:references:user-agent :x-from-line:cc:x-gnus-newsgroup:mime-version:content-type; bh=S6dTIkqRWVtff5qZx/jUHShC3rWafQLGOC7bE3kP734=; b=B5814UmVG6RhcC+OcSQanNhcAGGzCSCInCyWZWjNrIsn3OaLQ5Uy7BgO+p2EiWWZcH CJgMJU9cCgm8oSicVnULMX+msuwKapcqdKXqJsta256T0v0udPNCO8R+o5UViMKFrWBD 8WMw/nSLYKeSZwxN6aXXkQalFw8cUXt4X8ROQ= Received: by 10.150.69.26 with SMTP id r26mr5873961yba.322.1317191956357; Tue, 27 Sep 2011 23:39:16 -0700 (PDT) Received: from nil (torexit2.pointless-enterprises.com. [46.166.137.253]) by mx.google.com with ESMTPS id h10sm320586ybg.23.2011.09.27.23.39.12 (version=SSLv3 cipher=OTHER); Tue, 27 Sep 2011 23:39:15 -0700 (PDT) From: h h In-Reply-To: <20110927.112343.546.2@DEV> (rank1seeker@gmail.com's message of "Tue, 27 Sep 2011 13:23:43 +0200") Date: Wed, 28 Sep 2011 06:38:53 +0000 Message-ID: <86k48uyylg.fsf@gmail.com> References: <20110927.093117.140.1@DEV> <86mxdq2tgj.fsf@gmail.com> <20110927.112343.546.2@DEV> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (berkeley-unix) X-From-Line: nobody Tue Sep 27 16:11:07 2011 CC: freebsd-hackers@freebsd.org X-Gnus-Newsgroup: sent:1785 Tue Sep 27 16:11:07 2011 MIME-Version: 1.0 Content-Type: text/plain 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: Wed, 28 Sep 2011 07:04:24 -0000 (examples are probably useful for the archive, too) rank1seeker@gmail.com writes: >> 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. So, did the example with __MAKE_CONF=/dev/stdin help? It allows you to omit specifying makefile via `-f' or `.include'. More examples # append CFLAGS by overriding make.conf $ echo 'CFLAGS += -DDEBUG_LOCKS' | __MAKE_CONF=/dev/stdin make buildworld # append make.conf even if __MAKE_CONF is defined but empty $ (cat ${__MAKE_CONF-/etc/make.conf} /dev/null; echo 'CFLAGS += -DDEBUG_LOCKS') \ | __MAKE_CONF=/dev/stdin make buildworld > Looking again in man pages, I see that -f flag relates to Makefile syntaks > and NOT to the make.conf.