forked from babel/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (30 loc) · 891 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: build serve
build:
if [ ! -d ./_babel ]; \
then git clone [email protected]:babel/babel.git _babel; \
make bootstrap; \
fi
cd _babel; \
git pull; \
npm install; \
make build-dist
if [ ! -f ./scripts/babel.js ]; \
then touch ./scripts/babel.js; \
fi
rm -f ./_includes/version.html
touch ./_includes/version.html
cp ./_babel/VERSION ./_includes/version.html
cat ./_babel/packages/babel/dist/browser.min.js ./_babel/packages/babel/dist/polyfill.min.js > ./scripts/babel.js;
if [ ! -d ./node_modules ]; \
then npm install; \
fi
if [ ! -d ./_sass/bootstrap ]; \
then cp -r ./node_modules/bootstrap-sass/assets/stylesheets/bootstrap ./_sass/bootstrap; \
fi
serve:
@if ! which bundle >/dev/null; then \
echo "bundler is not installed, please install it with 'gem install bundler'."; \
exit 1; \
fi
bundle check || bundle install; \
bundle exec jekyll serve