Initial commit
This commit is contained in:
commit
f3bc7a1b3d
19
Makefile
Normal file
19
Makefile
Normal 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 $@
|
Loading…
Reference in New Issue
Block a user