summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 92c3868..2c07400 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
MAKEFLAGS += -j1
# Default target
-all: out/index.html
+all: out/index.html out/main.css
phony += all
# Boilerplate
@@ -20,8 +20,13 @@ clean:
rm -rf out
phony += clean
-# For real files, just let the ./make script take care of it.
-$(sort out/index.html $(filter-out $(phony),$(MAKECMDGOALS))): FORCE
+# Real file rules
+out/%.css: src/%.scss
+ @mkdir -p $(@D)
+ scss --stdin < $< > $@
+
+targets = $(phony) %.css
+$(sort $(filter-out $(targets),out/index.html $(MAKECMDGOALS))): FORCE
./make
# Boilerplate