]> git.donarmstrong.com Git - neurodebian.git/blob - Makefile
Put icon links to extracts from DSCs (README, changelog, copyright)
[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                 --extracts /home/www/neuro.debian.net/www/debian/extracts \
36                 commandisirrelevant
37         rm -f html-stamp
38         touch $@
39
40
41 removecache:
42         -rm -rf build/cache
43
44 removedb:
45         -rm -f build/db.db
46
47
48 updatedb: removedb removecache build/db.db
49
50
51 build/db.db:
52         mkdir -p build
53         PYTHONPATH=. python neurodebian/dde.py \
54                 --cfg neurodebian.cfg \
55                 --db build/db.db \
56                 updatedb
57         -rm -f source-stamp
58
59
60 upload-website: html
61         rsync -rvzlhp --delete \
62         --exclude=debian --exclude=debian-local --exclude=_files \
63         --chmod=Dg+s,g+rw $(WWW_DIR) $(WWW_UPLOAD_URI)
64
65 .PHONY: removedb removecache updatedb upload-website clean distclean pics html
66