# thanks to dima for walking me through this!
#
# needs: apt install emacs texlive-latex-extra texlive-plain-generic

export FORCE_SOURCE_DATE = 1
export SOURCE_DATE_EPOCH := $(shell date --utc --date '2026-04-26 15:00:00 -0700' +%s)

all: $(patsubst %.org,%.pdf,$(wildcard *.org))

%.pdf: %.org
	emacs -Q --batch --eval '(progn (random "0") (find-file "$<") (org-beamer-export-to-pdf))'

clean:
	rm -f *.pdf *.tex *.png

.PHONY:clean
