+#!/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
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