~carbslinux/carbslinux-style

a23ddc82631e0f9f9f4f74c5ec4666306f4e26d6 — Cem Keylan 1 year, 3 months ago ca1e804
switch to ninja
2 files changed, 21 insertions(+), 17 deletions(-)

D Makefile
A build.ninja
D Makefile => Makefile +0 -17
@@ 1,17 0,0 @@
SASS = sassc

SITE_SASS = sass/carbslinux.scss \
			sass/colors.scss \
			sass/sitestyle.scss \
			sass/bar.scss \
			sass/code.scss

all: carbslinux.css

carbslinux.css: ${SITE_SASS}
	${SASS} -Isass sass/carbslinux.scss $@

clean:
	rm -f carbslinux.css

.PHONY: all clean

A build.ninja => build.ninja +21 -0
@@ 0,0 1,21 @@
sass = sassc
site_sass = sass/colors.scss sass/sitestyle.scss sass/bar.scss sass/code.scss sass/reset.scss

rule min_css
  command = $sass -tcompressed -Isass $in $out
  description = CSS $out

rule css
  command = $sass -Isass $in $out
  description = CSS $out

rule CLEAN
  command = rm -f carbslinux.css carbslinux.min.css
  description = cleaning...

build all: phony carbslinux.css carbslinux.min.css
build carbslinux.css: css sass/carbslinux.scss | sass/colors.scss sass/sitestyle.scss sass/bar.scss sass/code.scss sass/reset.scss
build carbslinux.min.css: min_css sass/carbslinux.scss | sass/colors.scss sass/sitestyle.scss sass/bar.scss sass/code.scss sass/reset.scss
build clean: phony CLEAN
build CLEAN: CLEAN
default all