#!/usr/bin/make
+#
+# Requires python-mako and python-docutils APT packages
-deployurl = sysadmin@oss.titaniummirror.com:/var/www/
+server = oss.titaniummirror.com
+deployurl = sysadmin@$(server):/var/www/oss/
all: webber.conf
./webber
profile:
./webber --profile
+lint:
+ pylint \
+ --include-ids=y \
+ --reports=n \
+ --disable-msg=W0312,C0103 \
+ webber.py plugins
+
clean:
rm -f *.pyc plugins/*.pyc
rm -rf out
deploy:
- rsync -avz --delete out/ $(deployurl)
+ 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