julia调用C共享库的顺序问题


#1

deps/build.jl是在pkg.build()的时候被调用的,其内容如下

using BinDeps

@BinDeps.setup

libsteinspanner = library_dependency("libsteinspanner",
                                     aliases=["libstein_spanner.so", "libstein_spanner.1.so", "libstein_spanner.1.0.so", "libstein_spanner.1.0.0.so"])
provides(SimpleBuild,
   (@build_steps begin
        ChangeDirectory(joinpath(dirname(@__FILE__), "../src/discrepancy/spanner"))
        MakeTargets(["libstein_spanner.so"])`
        `mkdir -p ../../../deps/usr/lib`
        `cp libstein_spanner.so ../../../deps/usr/lib`
    end), libsteinspanner, os = :Unix)
@BinDeps.install Dict(:libsteinspanner => :libsteinspanner)

请问这句MakeTargets(["libstein_spanner.so"]),是触发了src/discrepancy/Makefile运行吗,还是说src/discrepancy/Makefile这部分是先于build.jl执行的。
请问MakeTargets这里传入的参数是何意思(官方解释:Invoke make with the given arguments in the given directory with the given environment.)。更进一步的讲,我想知道MakeTargets实质上做了什么事


#2

应该就是带参数运行make,然后单数组参数构造MakeTargets的话是把数组内容指定为targets