]> oss.titaniummirror.com Git - oss-web.git/commitdiff
Add a deploy target to the Makefile
authorR. Steve McKown <rsmckown@gmail.com>
Thu, 17 Dec 2009 00:05:33 +0000 (17:05 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Thu, 17 Dec 2009 00:05:33 +0000 (17:05 -0700)
Makefile

index 2e69fb21a432c83d4764d3159ede9a6028521879..41e0ebcdad3db64cc65a64d366629e5b68da6ce5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
+#!/usr/bin/make
+
+deployurl = sysadmin@oss.titaniummirror.com:/var/www/
 
 all: webber.conf
        ./webber
@@ -11,6 +14,9 @@ clean:
 realclean: clean
        rm -rf out
 
+deploy:
+       rsync -avz --delete out/ $(deployurl)
+
 # Automatically create webber.conf:
 ifeq ($(wildcard webber.conf),)
 webber.conf: in/webber.conf