Skip to content

Instantly share code, notes, and snippets.

@polprog
Created June 30, 2024 11:31
Show Gist options
  • Save polprog/c08dabdef3190703ba82a1ad59a4e1e7 to your computer and use it in GitHub Desktop.
Save polprog/c08dabdef3190703ba82a1ad59a4e1e7 to your computer and use it in GitHub Desktop.
# The main tex file which \input's the section files
MAINTEX=TO BE FILLED BY OEM
# The section tex files
TEXFILES=TO BE FILLED BY OEM
OUTPUT=output/
all: dirs html pdf
dirs:
mkdir -p ${OUTPUT}
html: ${MAINTEX} ${TEXFILES}
latex2html -split 0 -dir ${OUTPUT} $<
pdf: ${MAINTEX} ${TEXFILES}
xelatex -output-directory=${OUTPUT} $<
clean:
rm -r ${OUTPUT}/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment