Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2013 12:09:48 -0400
From:      Carmel <carmel_ny@hotmail.com>
To:        freebsd-ports@freebsd.org
Subject:   ${PORT_OPTIONS:MDOCS}
Message-ID:  <BLU0-SMTP1842D2E337FA1B4F69DE46093D70@phx.gbl>

next in thread | raw e-mail | index | archive | help
I have a problem with updating a Makefile for an existing port. When
running "portlint -a" on the Makefile=2C it pops up with this warning:

WARN: Makefile: [53]: NOPORTDOCS found.  Consider using
PORT_OPTIONS:MDOCS

So=2C I have tried doing what the Porters Handbook suggested=2C and it just
bombs out with this useless message:

"Makefile"=2C line 53: Malformed conditional (${PORT_OPTIONS:MDOCS})
"Makefile"=2C line 58: if-less endif
make: fatal errors encountered -- cannot continue

I have tried all sorts of edits=2C but sans success. This is the latest
edit. I have omitted the useless stuff=2C I think.

PORTDOCS=3D       README CHANGE.LOG INSTALL Release.pdf

post-install:
        @if [ ! -d ${ETCDIR} ]=3B then \
                ${MKDIR} ${ETCDIR} =3B \
        fi

        @${INSTALL_DATA} ${FILESDIR}/default.sample ${ETCDIR}
                @if [ ! -f ${ETCDIR}/default ]=3B then \
                        ${CP} -p ${ETCDIR}/default.sample \
                        ${ETCDIR}/default =3B \
                fi

do-install:
        cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTNAME}.sh ${PREFIX}/bin
        cd ${WRKSRC} && ${INSTALL_MAN} scamp.1 ${MANPREFIX}/man/man1

# Documentation
.if ${PORT_OPTIONS:MDOCS}
        ${MKDIR} ${DOCSDIR}
                 for f in ${PORTDOCS}
                ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
                endfor
.endif

        @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>

So what am I doing wrong?

--=20
Carmel =E2=9C=8C
carmel_ny@hotmail.com





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