From e6f07e6c65c08cdb24b203a6352b0c8067caf658 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 16 Oct 2015 13:25:51 +0200 Subject: Add basic styling. --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0d9346a..311a56a 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ hypertext-snippets = $(markdown-snippets:%.mdwn=%.html) markdown := $(filter-out $(markdown-snippets),$(wildcard *.mdwn)) hypertext = $(subst index/index,index,$(markdown:%.mdwn=%/index.html)) -all: $(hypertext) +all: $(hypertext) style.css update: source all source: .git @@ -15,11 +15,15 @@ $(hypertext-snippets): %.html: %.mdwn Makefile %.html %/index.html: %.mdwn $(hypertext-snippets) Makefile $(if $(filter-out ./,$(dir $@)),mkdir -p $(dir $@)) - pandoc -s -B topbar.html -A footer.html -f markdown -t html -o $@ $< + pandoc -s -c style.css -B topbar.html -A footer.html -f markdown -t html -o $@ $< + +%.css : %.scss Makefile + scss --compass --style compressed $< $@ clean: find -type f -name '*.html' -delete find -type d -empty -delete + rm -rf .sass-cache MAKEFLAGS += --jobs .NOTPARALLEL: source -- cgit v1.2.3