Twice included bsd.port.mk error

Edwin Groothuis edwin at mavetju.org
Thu Feb 10 16:01:30 PST 2005


On Tue, Feb 08, 2005 at 09:53:53PM -0700, Ryan Sommers wrote:
> Line 895 bsd.port.mk:
> 
> .if defined(_PREMKINCLUDED)
> check-makefile::
>         @${ECHO_CMD} "${PKGNAME}: Makefile error: you cannot include
> bsd.port[.pre].mk twice"
>         @${FALSE}
> .endif
> 
> _PREMKINCLUDED= yes
> 
> attempts to catch including this file twice. However, it never does. (Try
> including it twice in a port.)

[~] edwin at k7>cat Makefile 
PORTVERSION=1
PORTNAME=boo
CATEGORIES=www

.include <bsd.port.pre.mk>
.include <bsd.port.pre.mk>
.include <bsd.port.post.mk>

[~] edwin at k7>make
boo-1: Makefile error: you cannot include bsd.port[.pre].mk twice

The issue is more that the port doesn't do anything unless
bsd.port.[post.]mk isn't included.

Edwin
-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin at mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/


More information about the freebsd-ports mailing list