NOPORTDOCS ignored on command line

Christian Weisgerber naddy at FreeBSD.org
Wed Sep 16 21:32:11 UTC 2009


Wesley Shields:

> Are you seeing any particular problem on any particular port?

Yes, but I haven't committed it yet.

> wxs at rst wxs % cat Makefile 
> all:
> .if defined(NOPORTDOCS)
> 	@echo "defined"
> .else
> 	@echo "not defined"
> .endif

I have this:

.if !defined(NOPORTDOCS)
INSTALL_TARGET= install install-dist_docDATA
.endif

However, when I run "make -DNOPORTDOCS install", the install-dist_docDATA
target is still executed!

So I have now added this snippet for debugging:

do-install:
        @echo ${INSTALL_TARGET}; exit 1

$ make -DNOPORTDOCS -V INSTALL_TARGET
install
$ make -DNOPORTDOCS install
===>  Installing for xz-4.999.9
===>   Generating temporary packing list
===>  Checking if archivers/xz already installed
===>  Switching to root credentials for 'install' target
install install-dist_docDATA
*** Error code 1

Presumably bsd.port.mk invokes a recursive make for the install
step, but fails to pass NOPORTDOCS.

-- 
Christian "naddy" Weisgerber                          naddy at mips.inka.de


More information about the freebsd-ports mailing list