diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-09 17:09:27 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-09 17:09:27 -0500 |
commit | a70b39250252962df17670cee743d01d1a6f7c16 (patch) | |
tree | 58c390dfd181953cb790d3edfc57e79a5406ff08 /Makefile | |
parent | 5022d1a0df1534b1cbec1cbee23568f201ea1cc6 (diff) |
fix
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |