Date: Thu, 24 Jan 2002 16:01:19 -0500 From: Alan Eldridge <alane@geeksrus.net> To: Geoffrey Mainland <mainland@apeiron.net> Cc: freebsd-questions@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG Subject: Re: imake-4 build problem and make weirdness Message-ID: <20020124210119.GA32380@wwweasel.geeksrus.net> In-Reply-To: <20020124203046.GA82211@apeiron.net> References: <20020124203046.GA82211@apeiron.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 24, 2002 at 12:30:46PM -0800, Geoffrey Mainland wrote:
>Given a Makefile containing:
>
>${ETC} = /etc
That assigns /etc to the variable named "". Aww, geez, make shouldn't
take that. PR time. So then ${ETC}/rc.conf = /rc.conf, which probably
does not exist.
If you do it the right way, though ...
[alane ~]$ cat Makefile
ETC= /etc
all:
.if exists(${ETC}/rc.conf)
@echo 1
.endif
.if exists(/etc/rc.conf)
@echo 2
.endif
[alane ~]$ make
1
2
>trying to compile imake-4. I have USA_RESIDENT=YES in /etc/make.conf
>and I have also downloaded Wraphelp.c to
>/usr/ports/distfiles/xc/Wraphelp.c, yet when I build imake-4 the build
>process says it can't find Wraphelp.c and sets HasXdmAuth to NO. The
Aw shit. You found a bug.
[alane ~/FreeBSD/ports/devel/imake-4]$ cvs diff
Index: Makefile
===================================================================
RCS file: /home/alane/cvsroot/ports/devel/imake-4/Makefile,v
retrieving revision 1.16
diff -u -3 -r1.16 Makefile
--- Makefile 6 Jan 2002 20:41:44 -0000 1.16
+++ Makefile 24 Jan 2002 20:55:58 -0000
@@ -116,6 +116,8 @@
# InstallXserverSetUID=NO : use Xwrapper.
# End of XFree86 configrations
+.include <bsd.port.pre.mk>
+
.if ${HasXdmAuth} == YES
.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES
.if !exists(${DISTDIR}/${DIST_SUBDIR}/Wraphelp.c)
@@ -136,4 +138,4 @@
.endif # USA_RESIDENT
.endif # HasXdmAuth
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
[alane ~/FreeBSD/ports/devel/imake-4]$
--
Alan Eldridge
Pmmfmffmmfmp mmmpppppffmpmfpmpppff PmpMpmMpp ppfppp MpfpffmppmppMmpFmmMpm
mfpmmmmmfpmpmpppff.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020124210119.GA32380>
