summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--Makefile12
-rw-r--r--actiontabs/style.scss (renamed from actiontabs/style.css)0
-rw-r--r--blueview/style.scss (renamed from blueview/style.css)0
-rw-r--r--default/style.scss (renamed from default/style.css)0
-rw-r--r--goldtype/style.scss (renamed from goldtype/style.css)0
-rw-r--r--include.mk15
-rw-r--r--monochrome/style.scss (renamed from monochrome/style.css)0
8 files changed, 29 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0092bf4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.css
+*.css.map
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..24e2475
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+cssprojects ?= default actiontabs blueview goldtype monochrome
+
+sass_includes = default
+
+#sass_beautify = yes
+#no_sass_sourcemap = yes
+
+all: $(cssprojects)
+
+include include.mk
+
+.PHONY: all
diff --git a/actiontabs/style.css b/actiontabs/style.scss
index ffe37fb..ffe37fb 100644
--- a/actiontabs/style.css
+++ b/actiontabs/style.scss
diff --git a/blueview/style.css b/blueview/style.scss
index 785683e..785683e 100644
--- a/blueview/style.css
+++ b/blueview/style.scss
diff --git a/default/style.css b/default/style.scss
index 9f82899..9f82899 100644
--- a/default/style.css
+++ b/default/style.scss
diff --git a/goldtype/style.css b/goldtype/style.scss
index b9305d3..b9305d3 100644
--- a/goldtype/style.css
+++ b/goldtype/style.scss
diff --git a/include.mk b/include.mk
new file mode 100644
index 0000000..8d4a712
--- /dev/null
+++ b/include.mk
@@ -0,0 +1,15 @@
+cssprojectinfiles = $(foreach file,$(if $1,$(shell find $1 -name '*.scss')),$(if $(filter-out _%,$(notdir $(file))),$(file)))
+cssprojectoutfiles = $(patsubst %.scss,%.css,$(call cssprojectinfiles,$1))
+
+cssprojectcontent = $(call cssprojectoutfiles,$(cssprojects))
+
+$(cssprojects): $(cssprojectcontent)
+
+%.css: %.scss
+ sassc$(sass_includes:%= --load-path %) --style $(if $(sass_beautify),expanded,compressed)$(if $(no_sass_sourcemap),, --sourcemap) $< $@
+ $(if $(sass_beautify),perl -i -pe 's/ /\t/g' $@)
+
+clean::
+ rm -f $(call cssprojectoutfiles,$(cssprojects))
+
+.PHONY: clean $(cssprojects)
diff --git a/monochrome/style.css b/monochrome/style.scss
index 2dcfda0..2dcfda0 100644
--- a/monochrome/style.css
+++ b/monochrome/style.scss