From owner-freebsd-hackers Mon Feb 5 14:59:23 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.189]) by hub.freebsd.org (Postfix) with SMTP id 6FABF37B698 for ; Mon, 5 Feb 2001 14:53:56 -0800 (PST) Received: (qmail 24481 invoked by uid 1000); 5 Feb 2001 22:52:14 -0000 Date: Tue, 6 Feb 2001 00:52:14 +0200 From: Peter Pentchev To: hackers@FreeBSD.org Subject: Re: make -f Makefile.bsd depend fails Message-ID: <20010206005213.D17885@ringworld.oblivion.bg> Mail-Followup-To: hackers@FreeBSD.org References: <20010205193319.B581@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010205193319.B581@ringworld.oblivion.bg>; from roam@orbitel.bg on Mon, Feb 05, 2001 at 07:33:19PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Just to let people know, Jeremy Norris came up with a nice reminder that gmake looks for GNUmakefile before makefile before Makefile, so I can now leave my pmake Makefile with its real name. Problem at hand solved; still wondering about how the generic bsd.dep.mk situation could be improved though :) G'luck, Peter -- Do you think anybody has ever had *precisely this thought* before? On Mon, Feb 05, 2001 at 07:33:19PM +0200, Peter Pentchev wrote: > Hi, > > I'm trying to write a cross-platform, cross-make compatible app. > Thus, there is a Makefile.bsd and a Makefile.gnu, with Makefile > being a symlink the user makes to the appropriate file. > > If Makefile points to Makefile.bsd, 'make depend' works fine. > If, however, I invoke a make -f Makefile.bsd depend, and > Makefile is a link to Makefile.gnu (uninterpretable by pmake): [snip make errors output] > I tried fondling the privates of share/mk/bsd.dep.mk, but there appears > to be something weird going on: in the depend target, ${MAKEFILE} is > set to ".depend", so I cannot use this as a test whether there has been > an -f option on the command line. It also seems that -f is not added > to ${.MAKEFLAGS}. > > Ideas? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message