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