mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
build: Make the lang.h and genlang.h depend on the genlang tool
(So if genlang is updated, regenerate the language headers) Change-Id: I1de94eff609b27788db4f08e2d99992b8f360849
This commit is contained in:
parent
6ae2b7140c
commit
e4345f2db8
1 changed files with 3 additions and 3 deletions
|
@ -37,13 +37,13 @@ $(BUILDDIR)/lang/lang_core.o: $(BUILDDIR)/lang/lang.h $(BUILDDIR)/lang/lang_core
|
||||||
# instead we pretend that genlang create lang_core.c and that lang.c depends from lang.h
|
# instead we pretend that genlang create lang_core.c and that lang.c depends from lang.h
|
||||||
# it will work fine as long as one never manually removes lang.c and not lang.h, and it will avoid
|
# it will work fine as long as one never manually removes lang.c and not lang.h, and it will avoid
|
||||||
# race conditions such as running genlang twice or worse in parallel with other things!
|
# race conditions such as running genlang twice or worse in parallel with other things!
|
||||||
$(BUILDDIR)/lang/lang.h: $(APPSDIR)/lang/$(ENGLISH).lang $(BUILDDIR)/apps/features
|
$(BUILDDIR)/lang/lang.h: $(APPSDIR)/lang/$(ENGLISH).lang $(BUILDDIR)/apps/features $(TOOLSDIR)/genlang
|
||||||
$(call PRINTS,GEN lang.h)
|
$(call PRINTS,GEN lang.h)
|
||||||
$(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \
|
$(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \
|
||||||
perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(MODELNAME)$$feat $<
|
perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(MODELNAME)$$feat $<
|
||||||
$(BUILDDIR)/lang/lang_core.c: $(BUILDDIR)/lang/lang.h
|
$(BUILDDIR)/lang/lang_core.c: $(BUILDDIR)/lang/lang.h $(TOOLSDIR)/genlang
|
||||||
|
|
||||||
$(BUILDDIR)/lang_enum.h: $(BUILDDIR)/lang/lang.h
|
$(BUILDDIR)/lang_enum.h: $(BUILDDIR)/lang/lang.h $(TOOLSDIR)/genlang
|
||||||
|
|
||||||
# NOTE: for some weird reasons in GNU make, multi targets rules WITH patterns actually express
|
# NOTE: for some weird reasons in GNU make, multi targets rules WITH patterns actually express
|
||||||
# the fact that the two files are created as the result of one invocation of the rule
|
# the fact that the two files are created as the result of one invocation of the rule
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue