swatchmaker: added watcher and server to make file
[bootswatch] / swatchmaker / Makefile
index f4ff133..fe7f4bd 100755 (executable)
@@ -5,10 +5,10 @@
 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
+       recess --compile swatchmaker.less > ${OUTPUT_PATH}/bootstrap.css
+       recess --compress swatchmaker.less > ${OUTPUT_PATH}/bootstrap.min.css
+       recess --compile swatchmaker-responsive.less > ${OUTPUT_PATH}/bootstrap-responsive.css
+       recess --compress swatchmaker-responsive.less > ${OUTPUT_PATH}/bootstrap-responsive.min.css
 
 bootstrap:
        -test -d bootstrap && rm -r bootstrap
@@ -18,11 +18,17 @@ 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
+       -test -f ${OUTPUT_PATH}/variables.less && rm ${OUTPUT_PATH}/variables.less
+       -test -f ${OUTPUT_PATH}/bootswatch.less && rm ${OUTPUT_PATH}/bootswatch.less
+       curl --location -o ${OUTPUT_PATH}/variables.less https://raw.github.com/twitter/bootstrap/master/less/variables.less
+       curl --location -o ${OUTPUT_PATH}/bootswatch.less https://raw.github.com/thomaspark/bootswatch/gh-pages/swatchmaker/swatch/bootswatch.less
        make bootswatch
 
-.PHONY: bootswatch bootstrap default
+watcher:
+       ruby watcher.rb
+
+server:
+       python -m SimpleHTTPServer
+
+.PHONY: bootswatch bootstrap default watch server