add SOURCE_DATE_EPOCH to Makefile to fix copyright year (#800)

* add SOURCE_DATE_EPOCH to Makefile to fix copyright year

* use date to get unix time in place of git log

* Update Makefile

pass in --date='Jan 1' to date as suggested

Co-authored-by: Silvan Mosberger <github@infinisil.com>

---------

Co-authored-by: Silvan Mosberger <github@infinisil.com>
This commit is contained in:
Ryan Casalino 2023-11-14 20:16:27 -08:00 committed by GitHub
parent d135cab53f
commit 5e16a993ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,8 @@ PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# Explicitly set SOURCE_DATE_EPOCH for Sphinx copyright
SOURCE_DATE_EPOCH = $(shell date +%s --date='Jan 1')
.PHONY: help
help: