Add some magic to force make to regenerate version.h properly when the revision changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27000 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
75de4a352e
commit
06865475af
1 changed files with 7 additions and 0 deletions
|
@ -44,6 +44,13 @@ $(BUILDDIR)/sysfont.o: $(SYSFONT) $(BUILDDIR)/sysfont.h
|
|||
$(call PRINTS,CONVBDF $(subst $(ROOTDIR)/,,$<))$(TOOLSDIR)/convbdf -l $(MAXCHAR) -c -o $(BUILDDIR)/sysfont.c $<
|
||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$(BUILDDIR)/sysfont.c))$(CC) $(CFLAGS) -c $(BUILDDIR)/sysfont.c -o $@
|
||||
|
||||
SVNVERSION:=$(shell $(TOOLSDIR)/version.sh)
|
||||
OLDSVNVERSION:=$(shell grep 'RBVERSION' $(BUILDDIR)/version.h 2>/dev/null|cut -d '"' -f 2 || echo "NOREVISION")
|
||||
|
||||
ifneq ($(SVNVERSION),$(OLDSVNVERSION))
|
||||
.PHONY: $(BUILDDIR)/version.h
|
||||
endif
|
||||
|
||||
$(BUILDDIR)/version.c: $(BUILDDIR)/version.h
|
||||
$(TOOLSDIR)/genversion.sh c $(BUILDDIR) $(TOOLSDIR)/version.sh $(ROOTDIR)
|
||||
|
||||
|
|
Loading…
Reference in a new issue