Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Dec 2015 13:17:48 -0800
From:      John Baldwin <jhb@freebsd.org>
To:        "Simon J. Gerraty" <sjg@juniper.net>
Cc:        Warner Losh <imp@bsdimp.com>, Sean Bruno <sbruno@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: sys/modules "make clean" seems broken again
Message-ID:  <1629652.gVjg2AI38y@ralph.baldwin.cx>
In-Reply-To: <14468.1449001747@chaos>
References:  <564E0322.8050308@freebsd.org> <4121969.dQSZfNjpat@ralph.baldwin.cx> <14468.1449001747@chaos>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, December 01, 2015 12:29:07 PM Simon J. Gerraty wrote:
> John Baldwin <jhb@freebsd.org> wrote:
> 
> > +CLEANFILES+=	${_MFILES:R:S/$/.c/} ${_MFILES:R:S/$/.h/}
> 
> Since CLEANFILES is given to rm, you can use globs
> 
> CLEANFILES+= ${_MFILES:R:S/$/.[ch]/} or .?

I'm going to go with the more complicated version just so
'make -V CLEANFILES' doesn't blow up in case someone wants to look at it.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1629652.gVjg2AI38y>