2021-08-07 18:49:24 +08:00
|
|
|
PROJ = lkmpg
|
|
|
|
all: $(PROJ).pdf
|
|
|
|
|
|
|
|
$(PROJ).pdf: lkmpg.tex
|
|
|
|
rm -rf _minted-$(PROJ)
|
|
|
|
pdflatex -shell-escap $<
|
|
|
|
bibtex $(PROJ) >/dev/null || echo
|
2021-08-01 16:21:01 +08:00
|
|
|
pdflatex -shell-escape $< 2>/dev/null >/dev/null
|
2021-07-22 06:35:24 +08:00
|
|
|
|
2021-08-02 02:42:39 +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-08-07 23:33:37 +08:00
|
|
|
indent:
|
|
|
|
(cd examples; find . -name '*.[ch]' | xargs clang-format -i)
|
|
|
|
|
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
|
2021-08-02 02:42:39 +08:00
|
|
|
rm -rf html
|
|
|
|
|
|
|
|
.PHONY: html
|