diff options
author | Cem Keylan <cem@ckyln.com> | 2021-08-30 22:07:27 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-08-30 22:07:27 +0300 |
commit | a23ddc82631e0f9f9f4f74c5ec4666306f4e26d6 (patch) | |
tree | 30121139561dd7d87921bfbcb55c74f894afd01f | |
parent | ca1e804b4df96e51fd25427203ec7d4e19e63ce8 (diff) | |
download | carbslinux-style-a23ddc82631e0f9f9f4f74c5ec4666306f4e26d6.tar.gz |
switch to ninja
-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 |