Permalink
Browse files

updated less makefile to build css files in the root src directory (t…

…o fix relative path issues). added output css files to root .gitignore
  • Loading branch information...
1 parent d4d8f0d commit 1bb34d56d9d40ecf1663ba3a70a4ea0fea94995c @joelrbrandt joelrbrandt committed Jan 5, 2012
Showing with 10 additions and 10 deletions.
  1. +3 −1 .gitignore
  2. +0 −2 src/styles/.gitignore
  3. +7 −7 src/styles/Makefile
View
@@ -1 +1,3 @@
-Thumbs.db
+Thumbs.db
+src/brackets.css
+src/brackets.min.css
@@ -1,2 +0,0 @@
-brackets-app.css
-brackets-app.min.css
View
@@ -1,20 +1,20 @@
# input filenames
-BRACKETS_APP_LESS = ./brackets-app.less
+BRACKETS_LESS = ../brackets.less
# output filenames
-BRACKETS_APP = ./brackets-app.css
-BRACKETS_APP_MIN = ./brackets-app.min.css
+BRACKETS_CSS = ../brackets.css
+BRACKETS_CSS_MIN = ../brackets.min.css
DATE=$(shell DATE)
LESS_COMPRESSOR ?= `which lessc`
WATCHR ?= `which watchr`
build:
@@if test ! -z ${LESS_COMPRESSOR}; then \
- sed -e 's/@DATE/'"${DATE}"'/' <${BRACKETS_APP_LESS} >${BRACKETS_APP_LESS}.tmp; \
- lessc ${BRACKETS_APP_LESS}.tmp > ${BRACKETS_APP}; \
- lessc ${BRACKETS_APP_LESS}.tmp > ${BRACKETS_APP_MIN} --compress; \
- rm -f ${BRACKETS_APP_LESS}.tmp; \
+ sed -e 's/@DATE/'"${DATE}"'/' <${BRACKETS_LESS} >${BRACKETS_LESS}.tmp; \
+ lessc ${BRACKETS_LESS}.tmp > ${BRACKETS_CSS}; \
+ lessc ${BRACKETS_LESS}.tmp > ${BRACKETS_CSS_MIN} --compress; \
+ rm -f ${BRACKETS_LESS}.tmp; \
echo "brackets-app css successfully built! - `date`"; \
else \
echo "You must have the LESS compiler installed in order to build Bootstrap."; \

0 comments on commit 1bb34d5

Please sign in to comment.