aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2019-09-18 20:25:09 +0200
committerJulian T <julian@jtle.dk>2019-09-18 20:25:09 +0200
commitc14b6a9b3e2f0a6128750e967c67f8324b46c0d3 (patch)
tree4a3ce656da2a1d7d08993d47dde4ec675a541eba /Makefile
parentceb14fd5301a7156102b62baa9add6c2beed351a (diff)
Added all school stuff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a2fd408..af28aca 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,18 @@
-MD_FILES = $(wildcard *.md) $(wildcard */*.md)
+MD_FILES = $(shell find . -type f -name '*.md')
HTML_FILES = $(patsubst %.md, %.html, $(MD_FILES))
+index.html: $(HTML_FILES) index.sh
+ sh index.sh $(HTML_FILES) | pandoc --output $@
%.html: %.md
pandoc $^ --output $@
+
.PHONY: all clean
-all: $(HTML_FILES)
+all: $(HTML_FILES) index.html
clean:
rm -rf $(HTML_FILES)
+ rm index.html