Override release date in Makefile if possible

This commit is contained in:
Nobuyoshi Nakada 2023-02-13 15:12:54 +09:00
parent 849087ccb1
commit 9821f6d0e5
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -56,6 +56,13 @@ ifeq ($(if $(filter all main exts enc trans libencs libenc libtrans \
-include $(SHOWFLAGS)
endif
ifeq ($(HAVE_BASERUBY):$(HAVE_GIT),yes:yes)
override modified := $(shell $(BASERUBY) -C $(srcdir) tool/file2lastrev.rb --modified='%Y %m %d')
override RUBY_RELEASE_YEAR := $(word 1,$(modified))
override RUBY_RELEASE_MONTH := $(word 2,$(modified))
override RUBY_RELEASE_DAY := $(word 3,$(modified))
endif
ifneq ($(filter universal-%,$(arch)),)
define archcmd
%.$(1).S: %.c