diff options
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 |