Skip to content

Commit

Permalink
Add Makefile and converters to pdf and html
Browse files Browse the repository at this point in the history
via pandoc

To use it, run
dnf install pandoc
  • Loading branch information
mrunge committed Sep 22, 2020
1 parent c524914 commit f0a3c12
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
DOC=README

all: $(DOC).html $(DOC).pdf


%.tex: %.md
pandoc -f markdown -t latex -s -o $(DOC).tex $<

%.html: %.md
pandoc -f markdown -t html -o $(DOC).html $<

%.aux: %.tex
pdflatex $<

%.pdf: %.tex %.aux
pdflatex $<

clean:
rm -f $(DOC).pdf $(DOC).tex $(DOC).html $(DOC).aux $(DOC).log

0 comments on commit f0a3c12

Please sign in to comment.