Add "buildplt" target to Makefile. When invoked, it builds a full
PLT database in the user's home directory for the dialyzer application. However, this operation is very expensive and should only be performed if necessary, as dialyzer already provides a minimal PLT by default.
This commit is contained in:
parent
043d69b207
commit
363cc2203e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=240956
2 changed files with 18 additions and 0 deletions
|
@ -196,6 +196,15 @@ post-install:
|
|||
@${ECHO_CMD} "x!" >> ${WRKDIR}/ex.script
|
||||
@cd ${WRKDIR} ; ex < ex.script
|
||||
|
||||
buildplt:
|
||||
@${ECHO_CMD} =====================================================
|
||||
@${ECHO_CMD} WARNING: building a full PLT may literally take hours
|
||||
@${ECHO_CMD}
|
||||
@${ECHO_CMD} You may wish to settle for the standard PLT built by
|
||||
@${ECHO_CMD} dialyzer on the first run.
|
||||
@${ECHO_CMD} =====================================================
|
||||
@cd ${PREFIX}/lib/erlang/lib ; ${PREFIX}/bin/dialyzer --verbose --build_plt --output_plt ${HOME}/.dialyzer_plt -c $$(find ${OTP_LIBS} -name ebin -maxdepth 1) || true
|
||||
|
||||
.include "Makefile.lib"
|
||||
.include "Makefile.man"
|
||||
|
||||
|
|
|
@ -196,6 +196,15 @@ post-install:
|
|||
@${ECHO_CMD} "x!" >> ${WRKDIR}/ex.script
|
||||
@cd ${WRKDIR} ; ex < ex.script
|
||||
|
||||
buildplt:
|
||||
@${ECHO_CMD} =====================================================
|
||||
@${ECHO_CMD} WARNING: building a full PLT may literally take hours
|
||||
@${ECHO_CMD}
|
||||
@${ECHO_CMD} You may wish to settle for the standard PLT built by
|
||||
@${ECHO_CMD} dialyzer on the first run.
|
||||
@${ECHO_CMD} =====================================================
|
||||
@cd ${PREFIX}/lib/erlang/lib ; ${PREFIX}/bin/dialyzer --verbose --build_plt --output_plt ${HOME}/.dialyzer_plt -c $$(find ${OTP_LIBS} -name ebin -maxdepth 1) || true
|
||||
|
||||
.include "Makefile.lib"
|
||||
.include "Makefile.man"
|
||||
|
||||
|
|
Loading…
Reference in a new issue