Skip to content
Snippets Groups Projects
Commit 824b1ab2 authored by James R.'s avatar James R.
Browse files

Makefile: use full stem in dependency generation

Previously took only the filename, so the directory
component was stripped. This broke dependencies for
basically every file.
parent 58fa44e8
Branches
Tags
No related merge requests found
...@@ -376,7 +376,7 @@ ifdef Echo_name ...@@ -376,7 +376,7 @@ ifdef Echo_name
@printf '%-20.20s\r' $$< @printf '%-20.20s\r' $$<
endif endif
endif endif
$(.)$(cc) -MM -MF $$@ -MT $(objdir)/$$(*F).o $(2) $$< $(.)$(cc) -MM -MF $$@ -MT $(objdir)/$$*.o $(2) $$<
endef endef
$(eval $(call _recipe,c)) $(eval $(call _recipe,c))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment