From: Yaroslav Halchenko Date: Mon, 26 Sep 2011 19:11:54 +0000 (-0400) Subject: ENH: new target upload-website-stamp X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=48807dec7d32f2ea828faf7a4bdb8b46d160123c;p=neurodebian.git ENH: new target upload-website-stamp it should not invoke rebuild/upload if GIT repository has not being changed since last website upload --- diff --git a/Makefile b/Makefile index 2d6b523..4b9e35a 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ html: pics source clean: - -rm html-stamp source-stamp + -rm html-stamp source-stamp upload-website-stamp $(MAKE) -C artwork clean @@ -64,6 +64,12 @@ upload-website: html rsync -rvzlhp --delete \ --exclude=debian --exclude=debian-local --exclude=_files \ --chmod=Dg+s,g+rw $(WWW_DIR) $(WWW_UPLOAD_URI) + : # Touch stamp here so we get it updated on every upload + touch $@-stamp + +# call upload iff .git/index was modified, i.e. new changes got pulled in +upload-website-stamp: .git/index + $(MAKE) upload-website .PHONY: removedb removecache updatedb upload-website clean distclean pics html