зеркало из https://github.com/mozilla/brackets.git
updated less makefile to build css files in the root src directory (to fix relative path issues). added output css files to root .gitignore
This commit is contained in:
Родитель
d4d8f0d119
Коммит
1bb34d56d9
|
@ -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
|
|
|
@ -1,9 +1,9 @@
|
||||||
# input filenames
|
# input filenames
|
||||||
BRACKETS_APP_LESS = ./brackets-app.less
|
BRACKETS_LESS = ../brackets.less
|
||||||
|
|
||||||
# output filenames
|
# output filenames
|
||||||
BRACKETS_APP = ./brackets-app.css
|
BRACKETS_CSS = ../brackets.css
|
||||||
BRACKETS_APP_MIN = ./brackets-app.min.css
|
BRACKETS_CSS_MIN = ../brackets.min.css
|
||||||
|
|
||||||
DATE=$(shell DATE)
|
DATE=$(shell DATE)
|
||||||
LESS_COMPRESSOR ?= `which lessc`
|
LESS_COMPRESSOR ?= `which lessc`
|
||||||
|
@ -11,10 +11,10 @@ WATCHR ?= `which watchr`
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@@if test ! -z ${LESS_COMPRESSOR}; then \
|
@@if test ! -z ${LESS_COMPRESSOR}; then \
|
||||||
sed -e 's/@DATE/'"${DATE}"'/' <${BRACKETS_APP_LESS} >${BRACKETS_APP_LESS}.tmp; \
|
sed -e 's/@DATE/'"${DATE}"'/' <${BRACKETS_LESS} >${BRACKETS_LESS}.tmp; \
|
||||||
lessc ${BRACKETS_APP_LESS}.tmp > ${BRACKETS_APP}; \
|
lessc ${BRACKETS_LESS}.tmp > ${BRACKETS_CSS}; \
|
||||||
lessc ${BRACKETS_APP_LESS}.tmp > ${BRACKETS_APP_MIN} --compress; \
|
lessc ${BRACKETS_LESS}.tmp > ${BRACKETS_CSS_MIN} --compress; \
|
||||||
rm -f ${BRACKETS_APP_LESS}.tmp; \
|
rm -f ${BRACKETS_LESS}.tmp; \
|
||||||
echo "brackets-app css successfully built! - `date`"; \
|
echo "brackets-app css successfully built! - `date`"; \
|
||||||
else \
|
else \
|
||||||
echo "You must have the LESS compiler installed in order to build Bootstrap."; \
|
echo "You must have the LESS compiler installed in order to build Bootstrap."; \
|
||||||
|
|
Загрузка…
Ссылка в новой задаче