Skip to content

Commit 91882a4

Browse files
committed
Remove VPATH usage in Makefiles
This is just messing up all the doc dependencies because of such similar directory names and file names. Closes #11422
1 parent 864b434 commit 91882a4

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Makefile.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,6 @@ endef
206206
$(foreach target,$(CFG_TARGET),\
207207
$(eval $(call DEF_X,$(target))))
208208

209-
# Look in doc and src dirs.
210-
VPATH := $(S)doc $(S)src
211-
212209
# "Source" files we generate in builddir along the way.
213210
GENERATED :=
214211

mk/rt.mk

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,23 @@ NATIVE_DEPS_morestack_$(1) := arch/$$(HOST_$(1))/morestack.S
6767

6868
RT_OUTPUT_DIR_$(1) := $(1)/rt
6969

70-
$$(RT_OUTPUT_DIR_$(1))/%.o: rt/%.ll $$(MKFILE_DEPS) $$(LLVM_CONFIG_$$(CFG_BUILD))
70+
$$(RT_OUTPUT_DIR_$(1))/%.o: $(S)src/rt/%.ll $$(MKFILE_DEPS) \
71+
$$(LLVM_CONFIG_$$(CFG_BUILD))
7172
@mkdir -p $$(@D)
7273
@$$(call E, compile: $$@)
7374
$$(Q)$$(LLC_$$(CFG_BUILD)) $$(CFG_LLC_FLAGS_$(1)) \
7475
-filetype=obj -mtriple=$(1) -relocation-model=pic -o $$@ $$<
7576

76-
$$(RT_OUTPUT_DIR_$(1))/%.o: rt/%.c $$(MKFILE_DEPS)
77+
$$(RT_OUTPUT_DIR_$(1))/%.o: $(S)src/rt/%.c $$(MKFILE_DEPS)
7778
@mkdir -p $$(@D)
7879
@$$(call E, compile: $$@)
7980
$$(Q)$$(call CFG_COMPILE_C_$(1), $$@, \
8081
-I $$(S)src/rt/sundown/src -I $$(S)src/rt/sundown/html \
8182
-I $$(S)src/libuv/include -I $$(S)src/rt \
8283
$$(RUNTIME_CFLAGS_$(1))) $$<
8384

84-
$$(RT_OUTPUT_DIR_$(1))/%.o: rt/%.S $$(MKFILE_DEPS) $$(LLVM_CONFIG_$$(CFG_BUILD))
85+
$$(RT_OUTPUT_DIR_$(1))/%.o: $(S)src/rt/%.S $$(MKFILE_DEPS) \
86+
$$(LLVM_CONFIG_$$(CFG_BUILD))
8587
@mkdir -p $$(@D)
8688
@$$(call E, compile: $$@)
8789
$$(Q)$$(call CFG_ASSEMBLE_$(1),$$@,$$<)

mk/rustllvm.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $$(RT_OUTPUT_DIR_$(1))/$$(call CFG_STATIC_LIB_NAME_$(1),rustllvm): \
3737
@$$(call E, link: $$@)
3838
$$(Q)$$(AR_$(1)) rcs $$@ $$(RUSTLLVM_OBJS_OBJS_$(1))
3939

40-
$(1)/rustllvm/%.o: rustllvm/%.cpp $$(MKFILE_DEPS) $$(LLVM_CONFIG_$(1))
40+
$(1)/rustllvm/%.o: $(S)src/rustllvm/%.cpp $$(MKFILE_DEPS) $$(LLVM_CONFIG_$(1))
4141
@$$(call E, compile: $$@)
4242
$$(Q)$$(call CFG_COMPILE_CXX_$(1), $$@, $$(LLVM_CXXFLAGS_$(1)) $$(RUSTLLVM_INCS_$(1))) $$<
4343
endef

0 commit comments

Comments
 (0)