OLD | NEW |
1 RIETVELDREV=32c87e882d9b | 1 RIETVELDREV=40320f76005c |
2 | 2 |
3 default: | 3 default: |
4 @echo "Run 'make all' to fetch required sources to run this example." | 4 @echo "Run 'make all' to fetch required sources to run this example." |
5 | 5 |
6 all: static templates codereview gae2django dev.db | 6 all: static templates codereview gae2django dev.db |
7 @echo "Run './manage.py runserver' to run Rietveld." | 7 @echo "Run './manage.py runserver' to run Rietveld." |
8 | 8 |
9 clean: clean_local clean_external | 9 clean: clean_local clean_external |
10 | 10 |
11 clean_external: clean_rietveld | 11 clean_external: clean_rietveld |
12 | 12 |
13 clean_rietveld: | 13 clean_rietveld: |
14 @if [ -x codereview ]; then unlink codereview; fi; | 14 @if [ -x codereview ]; then unlink codereview; fi; |
15 @if [ -x static ]; then unlink static; fi; | 15 @if [ -x static ]; then unlink static; fi; |
16 @if [ -x templates ]; then unlink templates; fi; | 16 @if [ -x templates ]; then unlink templates; fi; |
17 @if [ -x upload.py ]; then unlink upload.py; fi; | 17 @if [ -x upload.py ]; then unlink upload.py; fi; |
18 @rm -rf rietveld.hg | 18 @rm -rf rietveld.hg |
19 | 19 |
20 clean_local: | 20 clean_local: |
21 @if [ -x gae2django ]; then unlink gae2django; fi; | 21 @if [ -x gae2django ]; then unlink gae2django; fi; |
22 @rm -f dev.db | 22 @rm -f dev.db |
23 | 23 |
24 gae2django: | 24 gae2django: |
25 ln -s ../../gae2django . | 25 ln -s ../../gae2django . |
26 | 26 |
27 dev.db: | 27 dev.db: |
28 ./manage.py syncdb --noinput | 28 ./manage.py syncdb --noinput |
29 | 29 |
30 rietveld.hg: | 30 rietveld.hg: |
31 » hg clone -u $(RIETVELDREV) http://code.google.com/p/rietveld rietveld.hg | 31 » hg clone -u $(RIETVELDREV) https://hg.adblockplus.org/rietveld rietveld.
hg |
32 | 32 |
33 codereview: rietveld.hg | 33 codereview: rietveld.hg |
34 ln -s rietveld.hg/codereview . | 34 ln -s rietveld.hg/codereview . |
35 patch -p1 < patches/download.link.diff | 35 patch -p1 < patches/download.link.diff |
36 | 36 |
37 static: rietveld.hg upload.py | 37 static: rietveld.hg upload.py |
38 ln -s rietveld.hg/static . | 38 ln -s rietveld.hg/static . |
39 | 39 |
40 upload.py: rietveld.hg | 40 upload.py: rietveld.hg |
41 ln -s rietveld.hg/upload.py . | 41 ln -s rietveld.hg/upload.py . |
42 patch -p0 < patches/upload.diff | 42 patch -p0 < patches/upload.diff |
43 | 43 |
44 templates: rietveld.hg | 44 templates: rietveld.hg |
45 ln -s rietveld.hg/templates . | 45 ln -s rietveld.hg/templates . |
46 patch -p1 < patches/account-login-links.diff | 46 patch -p1 < patches/account-login-links.diff |
OLD | NEW |