nhmk/Makefile

18 lines
574 B
Makefile
Raw Normal View History

2021-07-22 06:35:24 +08:00
all: lkmpg.tex
2021-08-01 16:21:01 +08:00
rm -rf _minted-main
2021-07-22 06:35:24 +08:00
pdflatex -shell-escap lkmpg.tex
2021-08-01 16:21:01 +08:00
bibtex main >/dev/null || echo
pdflatex -shell-escape $< 2>/dev/null >/dev/null
2021-07-22 06:35:24 +08:00
html: lkmpg.tex html.cfg
make4ht --shell-escape --utf8 --format html5 --config html.cfg --output-dir html lkmpg.tex
ln -sf lkmpg.html html/index.html
rm -f lkmpg.xref lkmpg.tmp lkmpg.html lkmpg.css lkmpg.4ct lkmpg.4tc lkmpg.dvi lkmpg.lg lkmpg.idv lkmpg*.svg lkmpg.log lkmpg.aux
2021-07-22 06:35:24 +08:00
clean:
rm -f *.dvi *.aux *.log *.ps *.pdf *.out lkmpg.bbl lkmpg.blg lkmpg.lof lkmpg.toc
rm -rf _minted-lkmpg
rm -rf html
.PHONY: html