-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
47 lines (39 loc) · 931 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
40
41
42
43
44
45
46
47
GITHUB_REPO_ARCHIVE=https://github.com/Colorsublime/Colorsublime-Themes/archive/master.zip
build:
# fetching themes
@ rm -rf _themes/*
@ mkdir -p tmp
@ curl -LOks $(GITHUB_REPO_ARCHIVE)
@ unzip -o master.zip -d tmp
@ node build
@ cp tmp/Colorsublime-Themes-master/themes/*.tmTheme ace/tool/tmthemes
# generate ace files
@ cd ace/tool && \
npm install && \
node tmtheme.js && \
cd ../ && \
npm install && \
node ./Makefile.dryice.js -m
@ make clean-tmp
deploy:
@ git checkout -f dev
@ bundle exec jekyll build
@ git checkout -f master
@ rm -rf .bundle
@ mv _site .site
@ rm -rf *
@ mv .site/* .
@ rm -rf .site
@ git add .
@ git commit -m"New release"
@ git push origin master
@ git checkout -f dev
install:
@ bundle install
serve:
@ bundle exec jekyll serve
clean-tmp:
@ rm -rf tmp master.zip
clean: clean-tmp
@ bundle exec jekyll clean
.PHONY: build deploy install serve clean-tmp deploy