Date: Tue, 6 Feb 2001 00:52:14 +0200 From: Peter Pentchev <roam@orbitel.bg> To: hackers@FreeBSD.org Subject: Re: make -f Makefile.bsd depend fails Message-ID: <20010206005213.D17885@ringworld.oblivion.bg> In-Reply-To: <20010205193319.B581@ringworld.oblivion.bg>; from roam@orbitel.bg on Mon, Feb 05, 2001 at 07:33:19PM %2B0200 References: <20010205193319.B581@ringworld.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
Just to let people know, Jeremy Norris <ishmael27@home.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010206005213.D17885>