Date: Thu, 9 Jan 2014 16:25:17 -0800 From: "Simon J. Gerraty" <sjg@juniper.net> To: Julio Merino <julio@meroh.net> Cc: "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>, sjg@juniper.net Subject: Re: Fixing installation of Kyuafiles Message-ID: <20140110002517.9085E5807E@chaos.jnpr.net> In-Reply-To: <CADyfeQV_G8LiOCDPce7RhR1MNnfTpn%2BB5SGW79%2BJhwvs8xj=sw@mail.gmail.com> References: <20140109233402.GA8193@fbair.virtual.network> <68CF4BF2-E97F-4B5E-920E-854FD6BCA083@gmail.com> <CADyfeQV_G8LiOCDPce7RhR1MNnfTpn%2BB5SGW79%2BJhwvs8xj=sw@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
On Thu, 9 Jan 2014 23:45:09 +0000, Julio Merino writes:
>If there is a simpler way than my patch, sure, by all means! I kinda
>feel that what I did is a hack, hence this email asking for advice :-P
if you want to stick to generated files, allowing for setting knobs in
makefile that influence them, would address both issues. But unless
this is a more generic issue, may not be worth it.
Another alternative is:
.if ${KYUAFILE:tl} != "no"
FILES+= Kyuafile
.if ${KYUAFILE:tl} == "auto"
.NOPATH: Kyuafile
.elif ${.OBJDIR} != ${.CURDIR} && exists(${.CURDIR}/Kyuafile)
# remove any generated file *now*
x!= rm -f ${.OBJDIR}/Kyuafile; echo
.endif
.endif
etc. You could make that
.elif ${.OBJDIR} != ${.CURDIR} && exists(${.CURDIR}/Kyuafile) && exists(${.OBJDIR}/Kyuafile)
if the gratuitous rm -f bothers you.
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140110002517.9085E5807E>
