Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

60 lines (45 sloc) 1.057 kb
all:: bem-bl
all:: $(patsubst %.bemjson.js,%.html,$(wildcard pages/*/*.bemjson.js))
BEM=bem
BEM_BUILD=$(BEM) build \
-l bem-bl/blocks-common/ \
-l bem-bl/blocks-desktop/ \
-l blocks/ \
-l $(@D)/blocks/ \
-d $< \
-t $1 \
-o $(@D) \
-n $(*F)
BEM_CREATE=$(BEM) create block \
-l pages \
-T $1 \
--force \
$(*F)
%.html: %.bemhtml.js %.css %.js %.ie.css %.bemhtml.js
$(call BEM_CREATE,bem-bl/blocks-common/i-bem/bem/techs/html.js)
.PRECIOUS: %.bemhtml.js
%.bemhtml.js: %.deps.js
$(call BEM_BUILD,bem-bl/blocks-common/i-bem/bem/techs/bemhtml.js)
%.deps.js: %.bemdecl.js
$(call BEM_BUILD,deps.js)
%.bemdecl.js: %.bemjson.js
$(call BEM_CREATE,bemdecl.js)
.PRECIOUS: %.ie.css
%.ie.css: %.deps.js
$(call BEM_BUILD,ie.css)
.PRECIOUS: %.css
%.css: %.deps.js
$(call BEM_BUILD,css)
.PRECIOUS: %.js
%.js: %.deps.js
$(call BEM_BUILD,js)
DO_GIT=@echo -- git $1 $2; \
if [ -d $2 ]; \
then \
cd $2 && git pull origin master; \
else \
git clone $1 $2; \
fi
bem-bl:
$(call DO_GIT,git://github.com/bem/bem-bl.git,$@)
.PHONY: all
Jump to Line
Something went wrong with that request. Please try again.