From 157c8d99ebae07a2afaa45ede964b6ab9cf9fa8c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 4 Jul 2014 15:16:26 +0200 Subject: add makefile and initial test data --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5265ecd --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ + +out := _out +md_sources := $(wildcard *.md) $(wildcard [a-z]*/*.md) +pages := $(patsubst %.md,$(out)/%.html, $(md_sources)) + +static_sources := $(shell find _static -type f) +static_out := $(patsubst _static/%,$(out)/%,$(static_sources)) + +all: $(pages) $(static_out) + +$(out)/%.html: %.md _layout.template.html + mkdir -p $(dir $@) + lua _scripts/generate_page.lua $< > $@ + +$(static_out): $(out)/%: _static/% + mkdir -p $(dir $@) + cp $< $@ + +clean: + rm -f $(pages) $(static_out) -- cgit v1.2.3