Chameleon

Chameleon Commit Details

Date:2011-05-30 04:53:21 (9 years 3 months ago)
Author:Evan Lojewski
Commit:918
Parents: 917
Message:Update vers.h generation so that make doesn't remake it every time.
Changes:
M/trunk/Makefile

File differences

trunk/Makefile
5050
5151
5252
53
53
5454
5555
5656
......
8989
9090
9191
92
93
94
95
96
92
93
94
95
96
9797
9898
9999
) || exit $$?; \
all: $(SYMROOT) $(OBJROOT) $(SRCROOT)/auto.conf $(SRCROOT)/autoconf.h $(SRCROOT)/autoconf.inc $(SRCROOT)/.config vers.h
all: $(SYMROOT) $(OBJROOT) $(SRCROOT)/auto.conf $(SRCROOT)/autoconf.h $(SRCROOT)/autoconf.inc $(SRCROOT)/.config $(SYMROOT)/i386/vers.h
@if [ -e ".svn" ]; then svnversion -n | tr -d [:alpha:] > revision; fi
@if [ -z "$(RC_ARCHS)" ]; then \
RC_ARCHS="i386"; \
fi; \
done
vers.h:
@echo "#define I386BOOT_VERSION \"5.0.132\"" > $(SYMROOT)/i386/vers.h
@echo "#define I386BOOT_BUILDDATE \"`date \"+%Y-%m-%d %H:%M:%S\"`\"" >> $(SYMROOT)/i386/vers.h
@echo "#define I386BOOT_CHAMELEONVERSION \"`cat version`\"" >> $(SYMROOT)/i386/vers.h
@echo "#define I386BOOT_CHAMELEONREVISION \"`svnversion -n | tr -d [:alpha:]`\"" >> $(SYMROOT)/i386/vers.h
$(SYMROOT)/i386/vers.h:
@echo "#define I386BOOT_VERSION \"5.0.132\"" > $@
@echo "#define I386BOOT_BUILDDATE \"`date \"+%Y-%m-%d %H:%M:%S\"`\"" >> $@
@echo "#define I386BOOT_CHAMELEONVERSION \"`cat version`\"" >> $@
@echo "#define I386BOOT_CHAMELEONREVISION \"`svnversion -n | tr -d [:alpha:]`\"" >> $@

Archive Download the corresponding diff file

Revision: 918