forked from mailpile/Mailpile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (53 loc) · 1.79 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Recipies for stuff
export PYTHONPATH := .
all: docs alltests dev web compilemessages
dev:
@echo export PYTHONPATH=`pwd`
debian-dev:
sudo apt-get install python-imaging python-lxml python-jinja2 \
rubygems ruby-dev yui-compressor
sudo gem install therubyracer less
docs:
test -d doc || \
git clone https://github.com/pagekite/Mailpile.wiki.git doc
python mailpile/urlmap.py >doc/URLS.md
python mailpile/defaults.py |grep -v ';timestamp' >doc/defaults.cfg
web: less js
@true
alltests:
python mailpile/config.py
python mailpile/util.py
python mailpile/vcard.py
python mailpile/workers.py
scripts/mailpile-test.py
clean:
@rm -vf *.pyc */*.pyc */*/*.pyc mailpile-tmp.py mailpile.py
@rm -vf .appver MANIFEST setup.cfg .SELF .*deps
@rm -vf scripts/less-compiler.mk
@rm -vrf *.egg-info build/ mp-virtualenv/ dist/
virtualenv:
virtualenv mp-virtualenv
bash -c 'source mp-virtualenv/bin/activate && pip install -r requirements.txt && python setup.py install'
js:
@cat static/default/js/mailpile.js > static/default/js/mailpile-min.js
@cat `find static/default/js/app/ -name "*.js"` >> static/default/js/mailpile-min.js
less: less-compiler
@make -s -f scripts/less-compiler.mk
less-loop: less-compiler
@echo 'Running less compiler every 15 seconds. CTRL+C quits.'
@while [ 1 ]; do \
make -s less; \
sleep 15; \
done
less-compiler:
@cp scripts/less-compiler.in scripts/less-compiler.mk
@find static/default/less/ -name '*.less' \
|perl -npe s'/^/\t/' \
|perl -npe 's/$$/\\/' \
>>scripts/less-compiler.mk
@echo >> scripts/less-compiler.mk
@perl -e 'print "\t\@touch .less-deps", $/' >> scripts/less-compiler.mk
genmessages:
@scripts/make-messages.sh
compilemessages:
@scripts/compile-messages.sh