summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2016-08-20 16:25:11 +0200
committerFrank Gevaerts <frank@gevaerts.be>2016-08-21 17:00:25 +0200
commit45c6785e22f589b6bbc930b20859dc7df102d705 (patch)
tree5b91d3670af162e01f3f4963ab3088216857eaea
parentadaba2bc066d055708a4b0cb257f28b0487cbc0a (diff)
downloadrockbox-45c6785.tar.gz
rockbox-45c6785.zip
Attempt to fix dependencies for lang.h, lang_core.c and lang_core.o
This hopefully fixes occasional build failures Change-Id: Iff79d2066d6421cca78cc3ecb6cb8db57351ab1f
-rw-r--r--apps/lang/lang.make8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/lang/lang.make b/apps/lang/lang.make
index 70629f52f3..ca71a72ea1 100644
--- a/apps/lang/lang.make
+++ b/apps/lang/lang.make
@@ -28,12 +28,12 @@ $(BUILDDIR)/lang/max_language_size.h: $(LANGOBJ) $(BUILDDIR)/apps/lang/voicestri
$(call PRINTS,GEN $(subst $(BUILDDIR)/,,$@))
$(SILENT)echo "#define MAX_LANGUAGE_SIZE `ls -ln $(BUILDDIR)/apps/lang/*.lng | awk '{print $$5-10}' | sort -n | tail -1`" > $@
-$(BUILDDIR)/lang/lang_core.o: $(APPSDIR)/lang/$(LANGUAGE).lang $(BUILDDIR)/apps/features
- $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \
- perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(MODELNAME)$$feat $<
+$(BUILDDIR)/lang/lang_core.o: $(BUILDDIR)/lang/lang.h $(BUILDDIR)/lang/lang_core.c
$(call PRINTS,CC lang_core.c)$(CC) $(CFLAGS) -c $(BUILDDIR)/lang/lang_core.c -o $@
-$(BUILDDIR)/lang/lang.h: $(BUILDDIR)/lang/lang_core.o
+$(BUILDDIR)/lang/lang.h $(BUILDDIR)/lang/lang_core.c: $(APPSDIR)/lang/$(LANGUAGE).lang $(BUILDDIR)/apps/features
+ $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \
+ perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(MODELNAME)$$feat $<
$(BUILDDIR)/%.lng $(BUILDDIR)/%.vstrings: $(ROOTDIR)/%.lang $(BUILDDIR)/apps/genlang-features
$(call PRINTS,GENLANG $(subst $(ROOTDIR)/,,$<))