From: Yaroslav Halchenko Date: Fri, 8 Jun 2012 17:19:58 +0000 (-0400) Subject: ENH: mirmon and refresh (the one to be called hourly from cron) Makefile rules X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f069965434ed33a6eb0600199cc249c324234947;p=neurodebian.git ENH: mirmon and refresh (the one to be called hourly from cron) Makefile rules --- diff --git a/Makefile b/Makefile index 34adc54..cf38994 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,10 @@ WWW_UPLOAD_URI = ../www WWW_DIR = build/html/ -all: updatedb upload-website +# Lentghy one due to updatedb +all: updatedb upload-website mirmon +# Quick one -- just rebuilds html if new changes and adjusts the status of the mirrors +refresh: upload-website-stamp mirmon pics: @@ -71,5 +74,9 @@ upload-website: html upload-website-stamp: .git/index $(MAKE) upload-website -.PHONY: removedb removecache updatedb upload-website clean distclean pics html +mirmon: + # update and generate mirrors report + [ -x /usr/bin/mirmon ] && mirmon -q -get update -c mirmon-neurodebian.conf + +.PHONY: removedb removecache updatedb upload-website clean distclean pics html mirmon