add immanuel Makefile at top level
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 19 Jan 2020 00:45:52 +0000 (00:45 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 19 Jan 2020 00:45:52 +0000 (00:45 +0000)
.gitignore [new file with mode: 0644]
Makefile [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..dc615b2
--- /dev/null
@@ -0,0 +1,2 @@
+.*.sw?
+*.pdf
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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