Skip to content

Instantly share code, notes, and snippets.

@kiyotune
Created June 7, 2021 02:57
Show Gist options
  • Save kiyotune/842b6650cfa4cfe33183bbaa8c81c826 to your computer and use it in GitHub Desktop.
Save kiyotune/842b6650cfa4cfe33183bbaa8c81c826 to your computer and use it in GitHub Desktop.
Converter from TeX to PDF
SRC := $(wildcard *.tex)
PDF := $(SRC:.tex=.pdf)
DVI := $(SRC:.tex=.dvi)
LOG := $(SRC:.tex=.log)
AUX := $(SRC:.tex=.aux)
all: ${PDF}
%.dvi: %.tex
platex $<
%.pdf: %.dvi
dvipdfmx $<
debug:
@echo ${SRC}
@echo ${DVI}
@echo ${PDF}
clean:
rm -f ${DVI} ${PDF} ${LOG} ${AUX}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment