Skip to content

Commit

Permalink
swatchmaker: added "make default" command
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspark committed May 13, 2012
1 parent 7c41226 commit 9894c7b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
17 changes: 13 additions & 4 deletions swatchmaker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,25 @@
# BUILD BOOTSWATCH SWATCH
#

OUTPUT_PATH = swatch

bootswatch:
lessc ./swatchmaker.less > swatch/bootstrap.css
lessc --compress ./swatchmaker.less > swatch/bootstrap.min.css
lessc swatchmaker.less > ${OUTPUT_PATH}/bootstrap.css
lessc --compress swatchmaker.less > ${OUTPUT_PATH}/bootstrap.min.css

bootstrap:
-test -d bootstrap && rm -r bootstrap
curl --location -o latest_bootstrap.tar.gz https://github.com/twitter/bootstrap/tarball/master
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

.PHONY: bootswatch bootstrap
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

10 changes: 7 additions & 3 deletions swatchmaker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ Step 2
------
Make your customizations to the two files found in the `swatch` directory, `variables.less` and `bootswatch.less`.

Step 3a
Step 3
------
If you haven't already, install LESS to your machine via NPM. More information on that here: http://lesscss.org/#-server-side-usage

Step 3b
Step 4
------
In terminal, navigate to the `swatchmaker` directory and run `make bootswatch`. The compiled CSS files will be created in the `swatch` directory.
In terminal, navigate to the `swatchmaker` directory and run `make bootswatch`. The compiled CSS files will be created in the `swatch` directory.

Step 5
------
If you want to reset `variables.less` and `bootswatch.less` to defaults, run `make default`.

0 comments on commit 9894c7b

Please sign in to comment.