summaryrefslogtreecommitdiff
path: root/tools/make.inc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/make.inc')
-rw-r--r--tools/make.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/make.inc b/tools/make.inc
index 8e125c834e..d9f4c14cf4 100644
--- a/tools/make.inc
+++ b/tools/make.inc
@@ -24,6 +24,11 @@ $(OBJDIR)/%.o: %.S
24# play nicely into this as it then adds a dependency to the lang.h file 24# play nicely into this as it then adds a dependency to the lang.h file
25# without the proper path. 25# without the proper path.
26# 26#
27# The trailing sed hack for a range of files is present because how gcc works
28# for generating dependencies when the include file doesn't exist. Then it
29# makes the dependency without any path, and that breaks how things work for
30# us. We thus add the correct path for a few generated files!
31#
27$(DEPFILE): $(SOURCES) 32$(DEPFILE): $(SOURCES)
28 $(SILENT)mkdir -p $(dir $(DEPFILE)) 33 $(SILENT)mkdir -p $(dir $(DEPFILE))
29 $(SILENT)rm -f $(DEPFILE) 34 $(SILENT)rm -f $(DEPFILE)
@@ -40,7 +45,10 @@ $(DEPFILE): $(SOURCES)
40 rm $$del; \ 45 rm $$del; \
41 del=""; \ 46 del=""; \
42 fi \ 47 fi \
43 done | sed -e "s:[^[:space:]]*lang.h:$(OBJDIR)/lang.o:" > $(DEPFILE); \ 48 done | sed -e "s:[^[:space:]]*lang.h:$(OBJDIR)/lang.o:" \
49 -e "s:[^[:space:]]*sysfont.h:$(BUILDDIR)/sysfont.h:" \
50 -e "s:[^[:space:]]*max_language_size.h:$(BUILDDIR)/max_language_size.h:" \
51 > $(DEPFILE); \
44 echo "oo" > /dev/null ) 52 echo "oo" > /dev/null )
45 53
46tags: 54tags: