ajout gitignore et makefile

This commit is contained in:
Francois Lesueur 2022-11-02 11:58:55 +01:00
parent a7d7bc2d2e
commit e845cb9559
2 changed files with 34 additions and 0 deletions

9
.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
output/
*.aux
*.log
*.nav
*.out
*.pdf
*.snm
*.synctex.gz
*.toc

25
Makefile Normal file
View File

@ -0,0 +1,25 @@
OUTDIR= output
SRC= $(wildcard *.md)
PDF= $(addprefix $(OUTDIR)/,$(SRC:.md=.pdf))
HTML= $(addprefix $(OUTDIR)/,$(SRC:.md=.html))
all: $(PDF) $(HTML)
pdf: $(PDF)
html: $(HTML)
directories: $(OUTDIR)
$(OUTDIR):
mkdir $(OUTDIR)
$(OUTDIR)/%.html: %.md $(OUTDIR)
pandoc --from=markdown+lists_without_preceding_blankline $< -o $@ -s
$(OUTDIR)/%.pdf: $(OUTDIR)/%.html
wkhtmltopdf $< $@
clean:
\rm -rf *.html *.pdf $(OUTDIR)