]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
makefile: change upload-figleaf target to create a 'current' link
authorBrian Warner <warner@allmydata.com>
Mon, 2 Jul 2007 22:10:20 +0000 (15:10 -0700)
committerBrian Warner <warner@allmydata.com>
Mon, 2 Jul 2007 22:10:20 +0000 (15:10 -0700)
GNUmakefile

index 611468853d22e2e5baab4a2b514d391cf7beb795..4803b39d5ea3d4e3d079048036e09555cee8b1f8 100644 (file)
@@ -151,8 +151,17 @@ figleaf-output:
 
 # 'upload-figleaf' is meant to be run with an UPLOAD_TARGET=host:/dir setting
 ifdef UPLOAD_TARGET
+
+ifndef UPLOAD_HOST
+$(error UPLOAD_HOST must be set when using UPLOAD_TARGET)
+endif
+ifndef COVERAGEDIR
+$(error COVERAGEDIR must be set when using UPLOAD_TARGET)
+endif
+
 upload-figleaf:
        rsync -a coverage-html/ $(UPLOAD_TARGET)
+       ssh $(UPLOAD_HOST) make update-tahoe-figleaf $(COVERAGEDIR)
 else
 upload-figleaf:
        echo "this target is meant to be run with UPLOAD_TARGET=host:/path/"