diff --git a/src/ext_mod.erl b/src/ext_mod.erl index fcf6fb172..5da3b34e7 100644 --- a/src/ext_mod.erl +++ b/src/ext_mod.erl @@ -599,7 +599,7 @@ compile(LibDir) -> Includes = [{i, Inc} || Inc <- filelib:wildcard(LibDir++"/../../**/include")], Options = [{outdir, Bin}, {i, LibDir++"/.."} | Includes ++ compile_options()], filelib:ensure_dir(filename:join(Bin, ".")), - [copy(App, Bin) || App <- filelib:wildcard(Src++"/*.app")], + [copy(App, filename:join(Bin, filename:basename(App, ".src"))) || App <- filelib:wildcard(Src++"/*.app*")], compile_c_files(LibDir), Er = [compile_erlang_file(Bin, File, Options) || File <- filelib:wildcard(Src++"/**/*.erl")],