From 333f22b27fdfb89b5f579ab541d1daa3167fdc73 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 17 Jun 2010 07:41:53 +0000 Subject: GNUmakefile: allow RSYNC variable to be overridden This lets me use RSYNC=echo when testing/editing documentation without actually publishing it. --- GNUmakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 854fb54..ee493d7 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -8,6 +8,7 @@ MRI = ruby RUBY = ruby RAKE = rake RAGEL = ragel +RSYNC = rsync GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE @./GIT-VERSION-GEN @@ -221,7 +222,7 @@ publish_doc: $(MAKE) doc_gz tar cf - $$(git ls-files examples/) | (cd doc && tar xf -) chmod 644 $$(find doc -type f) - rsync -av doc/ unicorn.bogomips.org:/srv/unicorn/ + $(RSYNC) -av doc/ unicorn.bogomips.org:/srv/unicorn/ git ls-files | xargs touch # Create gzip variants of the same timestamp as the original so nginx -- cgit v1.2.3-24-ge0c7