forked from Juicymo/devfest.cz
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 675 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (19 loc) · 675 Bytes
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
CURRENT_BRANCH=$(shell git branch --no-color | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
clean:
rm -rf ./build
build: copy add_version
compass:
compass compile src/site/
copy: clean compass
cd ./src/site && jekyll --no-server --no-auto && cd ../.. && cp -R ./src/appengine/* build/
add_version:
ruby -p -i -e '$$_.gsub!(/CHANGEME/, "$(CURRENT_BRANCH)")' ./build/app.yaml
deploy: build
cd ./build && appcfg.py update .
echo "Visit http://$(CURRENT_BRANCH).dart-lang.appspot.com"
server:
@open http://localhost:8080/ && cd ./src/site && jekyll && cd ../..
optimize:
@find . -iname *.png | xargs -L 1 optipng -o7
o2:
@find . -iname *.png | xargs -L 1 optipng -o2