Possible enhancement for Makefile.in of R14B01

Boris Mühmer boris.muehmer@REDACTED
Fri Dec 10 10:58:37 CET 2010


After still having problems with installing the R14B01 release from
source using _my_ scripts (1st I thought it is "sudo", than "make" and
at last "env"), I made the following patch to "Makefile.in":

The output of "diff otp_src_R14B01/Makefile.in
otp_src_R14B01-1/Makefile.in" is:

412c412
< 	$(ERL_TOP)/lib/erl_docgen/priv/bin/xref_mod_app.escript -topdir
$(ERL_TOP) -outfile $(ERL_TOP)/make/$(TARGET)/mod2app.xml
---
> 	$(ERL_TOP)/bin/escript
$(ERL_TOP)/lib/erl_docgen/priv/bin/xref_mod_app.escript -topdir
$(ERL_TOP) -outfile $(ERL_TOP)/make/$(TARGET)/mod2app.xml

It basically only adds "$(ERL_TOP)/bin/escript" to the call of
"xref_mod_app.escript" and thus forces the system to use the escript
from the source directory, because "env" may fall back to an old
"escript" (if it can find one at all!) which fails to locate/include the
file "xmerl/include/xmerl.hrl".

I am not sure if this modification should be included in the official
distribution... and what the proper way is... (About to check the FAQs).


  - boris



More information about the erlang-questions mailing list