forked from twbs/bootstrap
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of http://git.local.twitter.com/bootstrap
- Loading branch information
Showing
10 changed files
with
142 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,10 +1,29 @@ | |||
# NOTE: you must have the less npm package installed globally to build! | DATE=$(shell DATE) | ||
# To install run: npm install less -g | BOOTSTRAP = ./bootstrap-1.0.0.css | ||
# ProTip: watchr -e "watch('lib/.*\.less') { system 'make' }" | BOOTSTRAP_MIN = ./bootstrap-1.0.0.min.css | ||
BOOTSTRAP_LESS = ./lib/bootstrap.less | |||
LESS_COMPESSOR ?= `which lessc` | |||
WATCHR ?= `which watchr` | |||
|
|
||
build: | build: | ||
@lessc ./lib/bootstrap.less > ./bootstrap-1.0.0.css | @@if test ! -z ${LESS_COMPESSOR}; then \ | ||
@lessc ./lib/bootstrap.less > ./bootstrap-1.0.0.min.css --compress | sed 's/@DATE/'"${DATE}"'/' ${BOOTSTRAP_LESS} >${BOOTSTRAP_LESS}.tmp; \ | ||
@echo "Bootstrap successfully built! - `date`" | lessc ${BOOTSTRAP_LESS}.tmp > ${BOOTSTRAP}; \ | ||
lessc ${BOOTSTRAP_LESS}.tmp > ${BOOTSTRAP_MIN} --compress; \ | |||
rm -f ${BOOTSTRAP_LESS}.tmp; \ | |||
echo "Bootstrap successfully built! - `date`"; \ | |||
else \ | |||
echo "You must have the LESS compiler installed in order to build Bootstrap."; \ | |||
echo "You can install it by running: npm install less -g"; \ | |||
fi | |||
|
|
||
.PHONY: build | watch: | ||
@@if test ! -z ${LESS_COMPESSOR}; then \ | |||
echo "Watching less files..."; \ | |||
watchr -e "watch('lib/.*\.less') { system 'make' }"; \ | |||
else \ | |||
echo "You must have the WATCHR installed in order to build Bootstrap."; \ | |||
echo "You can install it by running: gem install watchr"; \ | |||
fi | |||
|
|||
.PHONY: build watch |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters