Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我定义了以下规则:
$(OUTDIR)/%_sorted.bam: $(eval SAMPLE:=$(subst _sorted,,$(notdir $(basename $@)))) (...) do something with $(SAMPLE)
我可以安全地使用它(=它是规则的“局部变量”吗?)
make -j (number of jobs)
或者变量 $(SAMPLE) 是否会被规则的每个(同时)调用替换?
是的你可以。GNU make 在执行之前扩展了整个配方。作业服务器模式仅影响由 make 产生的子进程的执行,其他一切都是单线程的。