diff options
Diffstat (limited to 'mk/autodep.mk')
| -rw-r--r-- | mk/autodep.mk | 54 |
1 files changed, 2 insertions, 52 deletions
diff --git a/mk/autodep.mk b/mk/autodep.mk index b2a785db..1eacbac1 100644 --- a/mk/autodep.mk +++ b/mk/autodep.mk @@ -2,7 +2,6 @@ # Auto-dependency ###################################################################### -ML_DEPFILES := $(BOOT_MLS:%.ml=%.d) C_DEPFILES := $(RUNTIME_CS:%.cpp=%.d) $(RUSTLLVM_LIB_CS:%.cpp=%.d) \ $(RUSTLLVM_OBJS_CS:%.cpp=%.d) @@ -24,57 +23,8 @@ rustllvm/%.d: rustllvm/%.cpp $(MKFILES) $(Q)rm -f [email protected] $(Q)mv [email protected] $@ -%.d: %.ml $(MKFILES) - @$(call E, dep: $@) - $(Q)ocamldep$(OPT) -slash $(BOOT_ML_DEP_INCS) $< >[email protected] - $(Q)$(CFG_PATH_MUNGE) [email protected] - $(Q)rm -f [email protected] - $(Q)perl -i.bak -pe "s@$(S)src/@@go" [email protected] - $(Q)rm -f [email protected] - $(Q)mv [email protected] $@ - -%.d: %.mli $(MKFILES) - @$(call E, dep: $@) - $(Q)ocamldep$(OPT) -slash $(BOOT_ML_DEP_INCS) $< >[email protected] - $(Q)$(CFG_PATH_MUNGE) [email protected] - $(Q)rm -f [email protected] - $(Q)perl -i.bak -pe "s@$(S)src/@@go" [email protected] - $(Q)rm -f [email protected] - $(Q)mv [email protected] $@ - ifneq ($(MAKECMDGOALS),clean) --include $(ML_DEPFILES) $(C_DEPFILES) -endif - -RUSTBOOT_PROBE := $(wildcard boot/rustboot$(X)) - -ifneq ($(RUSTBOOT_PROBE),) -CFG_INFO := $(info cfg: using built boot/rustboot$(X) for rust deps) -CRATE_DEPFILES := $(subst $(S)src/,,$(ALL_TEST_CRATES:%.rc=%.d)) \ - boot/$(CFG_STDLIB).d \ - stage0/rustc$(X).d \ - stage0/$(CFG_STDLIB).d - -boot/$(CFG_STDLIB).d: $(STDLIB_CRATE) $(STDLIB_INPUTS) \ - $(MKFILES) boot/rustboot$(X) - @$(call E, dep: $@) - $(BOOT) -o $(patsubst %.d,%$(X),$@) -shared -rdeps $< >[email protected] - $(Q)$(CFG_PATH_MUNGE) [email protected] - $(Q)rm -f [email protected] - $(Q)mv [email protected] $@ - -stage0/rustc$(X).d: $(COMPILER_CRATE) $(COMPILER_INPUTS) \ - $(STDLIB_CRATE) $(MKFILES) boot/rustboot$(X) - @$(call E, dep: $@) - $(Q)touch $@ - -%.d: %.rc $(MKFILES) - @$(call E, dep: $@) - $(Q)touch $@ - -ifneq ($(MAKECMDGOALS),clean) --include $(CRATE_DEPFILES) -endif +-include $(C_DEPFILES) endif -depend: boot/rustboot$(X) $(CRATE_DEPFILES) $(ML_DEPFILES) $(C_DEPFILES) +depend: $(C_DEPFILES) |