1 #WWW_UPLOAD_URI = neuro.debian.net:/home/www/neuro.debian.net/www
2 WWW_UPLOAD_URI = ../www
5 # Lentghy one due to updatedb
6 all: updatedb upload-website mirmon
7 # Quick one -- just rebuilds html if new changes and adjusts the status of the mirrors
8 refresh: upload-website-stamp mirmon
16 rsync -rvlhpt sphinx/ build/src
17 cd artwork; cp button_w200.png logo_tuned/fmri_w200.png ../build/src/_static; cd ..
18 cp 3rd/jquery.livetwitter/jquery.livetwitter.min.js build/src/_static
19 cd build/src && $(MAKE) html BUILDDIR=$(CURDIR)/build 2>&1
20 mv $(WWW_DIR)/_static/robots.txt $(WWW_DIR)/
21 cp -r build/src/lists $(WWW_DIR)/
22 cp -r sphinx/survey/2011/figures/* $(WWW_DIR)/_images/
26 -rm html-stamp source-stamp upload-website-stamp
27 $(MAKE) -C artwork clean
35 source-stamp: build/db.db
36 PYTHONPATH=.:$(PYTHONPATH) python neurodebian/dde.py \
37 --cfg neurodebian.cfg \
41 --extracts /home/www/neuro.debian.net/www/debian/extracts \
54 updatedb: removedb removecache build/db.db
59 PYTHONPATH=.:$(PYTHONPATH) python neurodebian/dde.py \
60 --cfg neurodebian.cfg \
67 rsync -rvzlhp --delete \
68 --exclude=debian --exclude=debian-local --exclude=_files \
69 --chmod=Dg+s,g+rw $(WWW_DIR) $(WWW_UPLOAD_URI)
70 : # Touch stamp here so we get it updated on every upload
73 # call upload iff .git/index was modified, i.e. new changes got pulled in
74 upload-website-stamp: .git/index
75 $(MAKE) upload-website
78 # update and generate mirrors report
79 [ -x /usr/bin/mirmon ] && mirmon -q -get update -c mirmon-neurodebian.conf
81 .PHONY: removedb removecache updatedb upload-website clean distclean pics html mirmon