]> git.donarmstrong.com Git - neurodebian.git/blob - Makefile
New repository setup instruction.
[neurodebian.git] / Makefile
1 #WWW_UPLOAD_URI = neuro.debian.net:/home/www/neuro.debian.net/www
2 WWW_UPLOAD_URI = ../www
3 WWW_DIR = build/html/
4
5 all: updatedb upload-website
6
7
8 pics:
9         $(MAKE) -C artwork
10
11
12 html: pics source
13         rsync -rvlhp sphinx/ build/src
14         cd artwork;     cp button_w200.png logo_tuned/fmri_w200.png ../build/src/_static; cd ..
15         cd build/src && $(MAKE) html BUILDDIR=$(CURDIR)/build 2>&1
16         mv $(WWW_DIR)/_static/robots.txt $(WWW_DIR)/
17         cp -r build/src/lists $(WWW_DIR)/
18
19
20 clean:
21         -rm html-stamp source-stamp
22         $(MAKE) -C artwork clean
23
24
25 distclean: clean
26         -rm -rf build
27
28
29 source: source-stamp
30 source-stamp: build/db.db
31         PYTHONPATH=. python neurodebian/dde.py \
32                 --cfg neurodebian.cfg \
33                 --db build/db.db \
34                 --outdir build/src \
35                 --pkgaddenum pkgs \
36                 --extracts /home/www/neuro.debian.net/www/debian/extracts \
37                 commandisirrelevant
38         rm -f html-stamp
39         touch $@
40
41
42 removecache:
43         -rm -rf build/cache
44
45 removedb:
46         -rm -f build/db.db
47
48
49 updatedb: removedb removecache build/db.db
50
51
52 build/db.db:
53         mkdir -p build
54         PYTHONPATH=. python neurodebian/dde.py \
55                 --cfg neurodebian.cfg \
56                 --db build/db.db \
57                 updatedb
58         -rm -f source-stamp
59
60
61 upload-website: html
62         rsync -rvzlhp --delete \
63         --exclude=debian --exclude=debian-local --exclude=_files \
64         --chmod=Dg+s,g+rw $(WWW_DIR) $(WWW_UPLOAD_URI)
65
66 .PHONY: removedb removecache updatedb upload-website clean distclean pics html
67