From 26d33041f84c12c73a0c9fd2ef6eef22b2432c9f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 19 Jan 2020 00:45:52 +0000 Subject: [PATCH] add immanuel Makefile at top level --- .gitignore | 2 ++ Makefile | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dc615b2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.*.sw? +*.pdf diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..34ff761 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +SRC = updates +SOURCES = $(shell find $(SRC) -name "*.md") +PDFS = $(SOURCES:$(SRC)/%.md=%.pdf) + +all: $(PDFS) + +debug: + $(info SOURCES is $(SOURCES)) + $(info PDFS is $(PDFS)) + +%.pdf:$(SRC)/%.md + pandoc -s $< -o $@ + +clean: + rm -rf *.pdf + +.PHONY: all clean debug -- 2.30.2