aboutsummaryrefslogtreecommitdiff
path: root/cad/fidocadj/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cad/fidocadj/Makefile')
-rw-r--r--cad/fidocadj/Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/cad/fidocadj/Makefile b/cad/fidocadj/Makefile
index c42662e25188..f2cb44b54860 100644
--- a/cad/fidocadj/Makefile
+++ b/cad/fidocadj/Makefile
@@ -25,7 +25,7 @@ USE_JAVA= yes
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
+DOCS_DISTFILES= ${PORTNAME}_manual_en.pdf:docs
FDCJ_MANUAL= ${PORTNAME}_manual_en.pdf
@@ -33,13 +33,8 @@ do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${MKDIR} ${STAGEDIR}${DATADIR}; \
${INSTALL_DATA} ${DISTDIR}/${PORTNAME}.jar ${STAGEDIR}${DATADIR}/
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR} && \
${INSTALL_DATA} ${DISTDIR}/${FDCJ_MANUAL} ${STAGEDIR}${DOCSDIR}/
-.endif
-
-.if ${PORT_OPTIONS:MDOCS}
-DISTFILES+= ${PORTNAME}_manual_en.pdf:docs
-.endif
.include <bsd.port.mk>