X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=Makefile;h=995ee671c6d7e6672228fad3818aa0066d6c4890;hb=HEAD;hp=342b8ebe5e3b170477452a120e388a7ea9daab87;hpb=b66bbc0cf3bd65582f1d2369f77b888f9eda4c09;p=oss-web.git diff --git a/Makefile b/Makefile index 342b8eb..995ee67 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,6 @@ #!/usr/bin/make +# +# Requires python-mako and python-docutils APT packages server = oss.titaniummirror.com deployurl = sysadmin@$(server):/var/www/oss/ @@ -9,6 +11,13 @@ 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 @@ -16,10 +25,16 @@ realclean: clean 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