ajout gitignore et makefile
This commit is contained in:
parent
a7d7bc2d2e
commit
e845cb9559
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
output/
|
||||
*.aux
|
||||
*.log
|
||||
*.nav
|
||||
*.out
|
||||
*.pdf
|
||||
*.snm
|
||||
*.synctex.gz
|
||||
*.toc
|
25
Makefile
Normal file
25
Makefile
Normal 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)
|
Loading…
Reference in New Issue
Block a user