Я в настоящее время использую
c(module_name)
создавать мои файлы Erlang один за другим. Как может процесс сборки для Erlang быть дескриптором, когда у них есть несколько файлов?
Я начинаю с использования Erlang make , потому что он запускает виртуальную машину один раз и компилирует все, что нужно перекомпилировать.
Попробуйте следующее в исходном каталоге, он скомпилирует те файлы .erl, в которых отсутствует соответствующий файл Beam, или те, в которых файл .erl был изменен с момента компиляции файла Beam:
erl -make
Дополнительные сведения о Emakefile трюки, такие как компиляция всех исходных файлов с помощью debug_info и размещение файлов .beam в ebin:
{'*',
[{outdir,"../ebin"},
debug_info]}.
во многих проектах используется обычный старый файл make и erlc
erlc -h
Usage: erlc [options] file.ext ...
Options:
-b type type of output file (e.g. jam or beam)
-d turn on debugging of erlc itself
-Dname define name
-Dname=value define name to have value
-hybrid compile using hybrid-heap emulator
-help shows this help text
-I path where to search for include files
-o name name output directory or file
-pa path add path to the front of Erlang's code path
-pz path add path to the end of Erlang's code path
-smp compile using SMP emulator
-v verbose compiler output
-Werror make all warnings into errors
-W0 disable warnings
-Wnumber set warning level to number
-Wall enable all warnings
-W enable warnings (default; same as -W1)
-E generate listing of expanded code (Erlang compiler)
-S generate assembly listing (Erlang compiler)
-P generate listing of preprocessed code (Erlang compiler)
+term pass the Erlang term unchanged to the compiler
Erlang Make и Emakefiles, вероятно, хороший способ начать.
В качестве примера вы можете посмотреть на систему сборки Erlang Web.
В частности, вы можете посмотреть на их Emakefile и compile.erl.