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