summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-12-31 17:48:54 -0700
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-31 17:48:54 -0700
commit7b11decd6a4b7f484ad35ae623941f21af7d31ec (patch)
tree4f8bf3280c48c94bd49d006a5d0149aa1f1bf2e4 /Makefile
parentc52557f0a969e539138b0fdd4d7dd25f8795b509 (diff)
More
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 4 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index a9b703b..d8adb8a 100644
--- a/Makefile
+++ b/Makefile
@@ -16,26 +16,19 @@ html.src = $(shell find src -type f \( -false $(foreach s,$(html.suffixes), -o -
# Translate the source filenames into output filenames
html.out = $(call patsubst-all,$(addprefix src/%.,$(html.suffixes)),out/%.html,$(html.src))
-all: $(html.out)
+all: $(html.out) out/main.css
bin/page = bin/page bin/util.rb bin/pandoc.rb
-# We have to repeat each `src/% -> out/%` rule twice; where once we
-# write it as `out/% -> out/%`. This allows us to chain rules.
-
-# Markdown
out/%.html: src/%.md $(bin/page) bin/page.html.erb bin/write-atomic
mkdir -p $(@D)
bin/page html $< | bin/write-atomic $@
-out/%.html: out/%.md $(bin/page) bin/page.html.erb bin/write-atomic
- bin/page html $< | bin/write-atomic $@
-
-# Org-Mode
out/%.html: src/%.org $(bin/page) bin/page.html.erb bin/write-atomic
mkdir -p $(@D)
bin/page html $< | bin/write-atomic $@
-out/%.html: out/%.org $(bin/page) bin/page.html.erb bin/write-atomic
- bin/page html $< | bin/write-atomic $@
+out/%.css: src/%.scss
+ mkdir -p $(@D)
+ scss --stdin < $< > $@
#out/index.md : index index.md.erb .var.articles $(addsuffix .md,$(articles)) util.rb Makefile write-atomic
# ./index md $(filter %.md,$^) | ./write-atomic $@