diff options
-rw-r--r-- | Makefile | 17 | ||||
-rw-r--r-- | build.ninja | 21 |
2 files changed, 21 insertions, 17 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 5bb3496..0000000 --- a/Makefile +++ /dev/null @@ -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 diff --git a/build.ninja b/build.ninja new file mode 100644 index 0000000..d84dd08 --- /dev/null +++ b/build.ninja @@ -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 |