forked from FarsetLabs/farsetlabs.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
42 lines (35 loc) · 937 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
.PHONY: configure
configure:
@mkdir -p etc/buildout
@if [ ! -e "etc/buildout/.installed.cfg" ]; then \
d=$$(dirname $$(pwd)); \
py="python"; \
until [ "$$d" = "/" ]; do \
if [ -e "$$d/bin/python" ]; then \
py="$$d/bin/python"; \
break; \
fi; \
d=$$(dirname $$d); \
done; \
echo "Bootstrapping with $$($$py -c 'import sys;print(sys.executable)')"; \
$$py bootstrap.py; \
fi;
@./bin/buildout
.PHONY: build
build:
@./bin/jekyll build
.PHONY: install
install: configure build
.PHONY: serve
serve:
@cd _site && python -m SimpleHTTPServer 4000
.PHONY: assets
assets:
@cat assets/iridium/css/normalize.css \
assets/iridium/css/foundation.css \
assets/iridium/css/iridium.css > iridium.concat.css
@./bin/yuicompressor iridium.concat.css > assets/iridium/css/iridium.min.css
@rm iridium.concat.css
.PHONY: deploy.s3
deploy.s3:
@s3cmd sync --delete-removed ${CURDIR}/_site/ s3://farsetlabs.beta/