]> oss.titaniummirror.com Git - oss-web.git/blobdiff - Makefile
make deploy: have rsync always checksum files
[oss-web.git] / Makefile
index 2e69fb21a432c83d4764d3159ede9a6028521879..995ee671c6d7e6672228fad3818aa0066d6c4890 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
+#!/usr/bin/make
+#
+# Requires python-mako and python-docutils APT packages
+
+server = oss.titaniummirror.com
+deployurl = sysadmin@$(server):/var/www/oss/
 
 all: webber.conf
        ./webber
@@ -5,14 +11,30 @@ all: webber.conf
 profile:
        ./webber --profile
 
+lint:
+       pylint \
+               --include-ids=y \
+               --reports=n \
+               --disable-msg=W0312,C0103 \
+               webber.py plugins
+
 clean:
        rm -f *.pyc plugins/*.pyc
 
 realclean: clean
        rm -rf out
 
+deploy:
+       rsync -cavz --delete out/ $(deployurl)
+
+dry:
+       rsync --dry-run -cavz --delete out/ $(deployurl)
+
 # Automatically create webber.conf:
 ifeq ($(wildcard webber.conf),)
 webber.conf: in/webber.conf
        ln -s in/webber.conf
 endif
+
+serve:
+       python serve.py