From a70b39250252962df17670cee743d01d1a6f7c16 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 9 Jan 2017 17:09:27 -0500 Subject: fix --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3