forked from mailpile/Mailpile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (56 loc) · 1.89 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
68
69
70
# 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 pep8 \
rubygems ruby-dev yui-compressor python-nose \
spambayes
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
@ls -l doc/URLS.md
@python mailpile/defaults.py |grep -v ';timestamp' >doc/defaults.cfg
@ls -l doc/defaults.cfg
web: less js
@true
alltests: docs
@python mailpile/config.py
@python mailpile/util.py
@python mailpile/vcard.py
@python mailpile/workers.py
@nosetests tests
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