Initial commit

master
subnixr 2017-05-13 00:16:58 +02:00
commit f3bc7a1b3d
1 changed files with 19 additions and 0 deletions

19
Makefile 100644
View File

@ -0,0 +1,19 @@
PDFDIR = pdf
SRCDIR = src
PANDOC = pandoc
PANDOCFLAGS =
SRCS = $(shell find $(SRCDIR) -type f -iname '*.md')
PDFS = $(patsubst $(SRCDIR)/%.md,$(PDFDIR)/%.pdf,$(SRCS))
.PHONY: all
all: $(PDFS)
.PHONY: clean
clean:
$(RM) -r $(PDFDIR)
$(PDFDIR)/%.pdf: $(SRCDIR)/%.md
@mkdir -p $(D)
$(PANDOC) $(PANDOCFLAGS) $< -o $@