Restyling of the config todo list
[odoo/odoo.git] / Makefile
index e527a5e..9e84e35 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,31 @@
-# -*- makefile -*-
+.PHONY: all doc release clean
 
-addons-path := bin/addons/ 
-root-path := bin/  
-port := 8069
-net_port := 8070 
-interrogation_file := bin/addons/base_quality_interrogation.py
-login := admin
-password := admin
+HOST = 127.0.0.1
+PORT = 8080
 
-openerp-test:  
-       python $(interrogation_file) openerp-test  --root-path=$(root-path) --addons-path=$(addons-path) --net_port=$(net_port) --port=$(port) --login=$(login) --password=$(password)
+all: run
+
+run:
+       python openerp-web.py -a ${HOST} -p ${PORT}
+
+release:
+       python setup.py sdist
+
+install:
+       python setup.py install
+
+clean:
+       @find . -name '*.pyc' -exec rm -f {} +
+       @find . -name '*.pyo' -exec rm -f {} +
+       @find . -name '*.swp' -exec rm -f {} +
+       @find . -name '*~' -exec rm -f {} +
+       @rm -rf build
+       @rm -rf dist
+       @rm -rf *.egg-info
+
+doc:
+       make -C doc html
+
+cloc:
+       cloc addons/*/common/*.py addons/*/controllers/*.py addons/*/static/src/*.js addons/*/static/src/js/*.js addons/*/static/src/css/*.css addons/*/static/src/xml/*.xml
 
-version:
-       python bin/openerp-server.py --version