equal
deleted
inserted
replaced
707 .PHONY: release nightly_build |
707 .PHONY: release nightly_build |
708 endif |
708 endif |
709 |
709 |
710 rev.c: FORCE |
710 rev.c: FORCE |
711 @# setting the revision number in a place, there the binary can read it |
711 @# setting the revision number in a place, there the binary can read it |
712 @echo 'const char _openttd_revision[] = "'$(REV)'";' >>rev.c.new |
712 @echo 'const char _openttd_revision[] = "$(REV)";' >>rev.c.new |
713 @echo 'const int _revision_number = $(REV_NUMBER);' >>rev.c.new |
713 @echo 'const int _revision_number = $(REV_NUMBER);' >>rev.c.new |
714 @# some additions for MorphOS versions tag |
714 @# some additions for MorphOS versions tag |
715 @echo '#ifdef __MORPHOS__' >>rev.c.new |
715 @echo '#ifdef __MORPHOS__' >>rev.c.new |
716 @echo 'const char morphos_versions_tag[] = "\\0$$VER: OpenTTD "'$(REV)'" ('${BUILDDATE}') © OpenTTD Team [MorphOS, PowerPC]";' >>rev.c.new |
716 @echo 'const char morphos_versions_tag[] = "\\0$$VER: OpenTTD $(REV) ('${BUILDDATE}') © OpenTTD Team [MorphOS, PowerPC]";' >>rev.c.new |
717 @echo '#endif' >>rev.c.new |
717 @echo '#endif' >>rev.c.new |
718 @# Only update the real rev.c if it actually changed, to prevent |
718 @# Only update the real rev.c if it actually changed, to prevent |
719 @# useless rebuilds. |
719 @# useless rebuilds. |
720 @cmp -s rev.c rev.c.new 2>/dev/null || mv rev.c.new rev.c |
720 @cmp -s rev.c rev.c.new 2>/dev/null || mv rev.c.new rev.c |
721 @rm -f rev.c.new |
721 @rm -f rev.c.new |