From a23ddc82631e0f9f9f4f74c5ec4666306f4e26d6 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 30 Aug 2021 22:07:27 +0300 Subject: switch to ninja --- Makefile | 17 ----------------- build.ninja | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 17 deletions(-) delete mode 100644 Makefile create mode 100644 build.ninja 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 -- cgit v1.2.3