summaryrefslogtreecommitdiff
path: root/swatchmaker/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'swatchmaker/Makefile')
-rwxr-xr-xswatchmaker/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/swatchmaker/Makefile b/swatchmaker/Makefile
new file mode 100755
index 00000000..f4ff1332
--- /dev/null
+++ b/swatchmaker/Makefile
@@ -0,0 +1,28 @@
+#
+# BUILD BOOTSWATCH SWATCH
+#
+
+OUTPUT_PATH = swatch
+
+bootswatch:
+ lessc swatchmaker.less > ${OUTPUT_PATH}/bootstrap.css
+ lessc --compress swatchmaker.less > ${OUTPUT_PATH}/bootstrap.min.css
+ lessc swatchmaker-responsive.less > ${OUTPUT_PATH}/bootstrap-responsive.css
+ lessc --compress swatchmaker-responsive.less > ${OUTPUT_PATH}/bootstrap-responsive.min.css
+
+bootstrap:
+ -test -d bootstrap && rm -r bootstrap
+ curl --location -o latest_bootstrap.tar.gz https://github.com/twitter/bootstrap/tarball/master
+ tar -xvzf latest_bootstrap.tar.gz
+ mv twitter-bootstrap* bootstrap
+ rm latest_bootstrap.tar.gz
+
+default:
+ -test -f swatch/variables.less && rm swatch/variables.less
+ -test -f swatch/bootswatch.less && rm swatch/bootswatch.less
+ curl --location -o swatch/variables.less https://raw.github.com/twitter/bootstrap/master/less/variables.less
+ curl --location -o swatch/bootswatch.less https://raw.github.com/thomaspark/bootswatch/master/swatchmaker/swatch/bootswatch.less
+ make bootswatch
+
+.PHONY: bootswatch bootstrap default
+