-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
46 lines (33 loc) · 1.1 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
.PHONY: hphp-build hphp-install hphp-redeploy clean-cache clean-hphp clean setup lint-repo
setup: arcanist libphutil
rm -f arc
ln -s arcanist/bin/arc .
hphp-build:
mkdir -p hphp/build/
find common/ www/ eval/ hphp/ config.php -name "*.php" > hphp/build/filelist
hphp --input-list=hphp/build/filelist -o hphp/build/ --program infoarena -l 3 --cluster-count 8
hphp-install:
prod/ia_stop.sh
cp -a hphp/build/infoarena .
prod/ia_start.sh
hphp-redeploy: hphp-build hphp-install
clean-cache:
find cache/ -type f -exec rm {} +
rm -rf www/static/images/{latex,tmp}/*
clean-hphp:
rm -rf hphp/build/*
clean-sessions:
find /var/infoarena/sessions/ -name sess_\* -exec rm {} +
clean-tools:
rm -rf arc arcanist libphutil
clean: clean-cache clean-hphp clean-sessions
distclean: clean-tools clean
arcanist:
git clone git://github.com/facebook/arcanist.git
rm -f arc
ln -s arcanist/bin/arc .
libphutil:
git clone git://github.com/facebook/libphutil.git
libphutil/scripts/build_xhpast.php || true
lint-repo: arcanist libphutil
find . -name \*.php | xargs arcanist/bin/arc lint --lintall --never-apply-patches