]> git.donarmstrong.com Git - neurodebian.git/blob - Makefile
Final changes before primetime.
[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 build/src && $(MAKE) html BUILDDIR=$(CURDIR)/build 2>&1
15
16
17 clean:
18         -rm html-stamp source-stamp
19         $(MAKE) -C artwork clean
20
21
22 distclean: clean
23         -rm -rf build
24
25
26 source: source-stamp
27 source-stamp: build/db.db
28         PYTHONPATH=. python neurodebian/dde.py \
29                 --cfg neurodebian.cfg \
30                 --db build/db.db \
31                 --outdir build/src \
32                 --pkgaddenum pkgs \
33                 commandisirrelevant
34         rm -f html-stamp
35         touch $@
36
37
38 removecache:
39         -rm -rf build/cache
40
41 removedb:
42         -rm build/db.db
43
44
45 updatedb: removedb removecache build/db.db
46
47
48 build/db.db:
49         mkdir -p build
50         PYTHONPATH=. python neurodebian/dde.py \
51                 --cfg neurodebian.cfg \
52                 --db build/db.db \
53                 updatedb
54         -rm source-stamp
55
56
57 upload-website: html
58         rsync -rvzlhp --delete --exclude=debian --chmod=Dg+s,g+rw $(WWW_DIR) $(WWW_UPLOAD_URI)
59
60 .PHONY: removedb removecache updatedb upload-website clean distclean pics html
61