1 #WWW_UPLOAD_URI = neuro.debian.net:/home/www/neuro.debian.net/www
2 WWW_UPLOAD_URI = ../www
5 all: updatedb upload-website
13 rsync -rvlhp sphinx/ build/src
14 cd artwork; cp button_w200.png logo_tuned/fmri_w200.png ../build/src/_static; cd ..
15 cp 3rd/jquery.livetwitter/jquery.livetwitter.min.js build/src/_static
16 cd build/src && $(MAKE) html BUILDDIR=$(CURDIR)/build 2>&1
17 mv $(WWW_DIR)/_static/robots.txt $(WWW_DIR)/
18 cp -r build/src/lists $(WWW_DIR)/
19 cp -r sphinx/survey/2011/figures/* $(WWW_DIR)/_images/
23 -rm html-stamp source-stamp
24 $(MAKE) -C artwork clean
32 source-stamp: build/db.db
33 PYTHONPATH=.:$(PYTHONPATH) python neurodebian/dde.py \
34 --cfg neurodebian.cfg \
38 --extracts /home/www/neuro.debian.net/www/debian/extracts \
51 updatedb: removedb removecache build/db.db
56 PYTHONPATH=.:$(PYTHONPATH) python neurodebian/dde.py \
57 --cfg neurodebian.cfg \
64 rsync -rvzlhp --delete \
65 --exclude=debian --exclude=debian-local --exclude=_files \
66 --chmod=Dg+s,g+rw $(WWW_DIR) $(WWW_UPLOAD_URI)
68 .PHONY: removedb removecache updatedb upload-website clean distclean pics html