all: pdf html pdf: mkdir -p build pdflatex -output-directory build $(NAME).tex pdflatex -output-directory build $(NAME).tex html: mkdir -p html make4ht -d html $(NAME).tex make4ht -d html $(NAME).tex cat ../custom.css >> html/$(NAME).css rm $(NAME).4ct $(NAME).4tc $(NAME).aux $(NAME).dvi $(NAME).idv $(NAME).lg $(NAME).log $(NAME).tmp $(NAME).xref $(NAME).css $(NAME).html .PHONY: all pdf html