summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-09 17:09:27 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-09 17:09:27 -0500
commita70b39250252962df17670cee743d01d1a6f7c16 (patch)
tree58c390dfd181953cb790d3edfc57e79a5406ff08 /Makefile
parent5022d1a0df1534b1cbec1cbee23568f201ea1cc6 (diff)
fix
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