summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2011-04-08 00:17:40 +0200
committerAntony Lesuisse <al@openerp.com>2011-04-08 00:17:40 +0200
commita20a5d36a51e90a71de3567f50342c7a90d6edfd (patch)
treeac11e0042a3edabafa0625478aa1657575a1a179
parentf2ba78f535fb11600763d914c312f3d52ee2b8b6 (diff)
cloc target in makefile, 5070 lines atm
bzr revid: al@openerp.com-20110407221740-6dbryyx58alqxo0m
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000000..0a4d41800e0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+.PHONY: all release clean
+
+HOST = 127.0.0.1
+PORT = 8080
+
+
+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
+
+cloc:
+ cloc openerpweb/*.py addons/*/controllers/*.py addons/*/static/src/*.js addons/*/static/src/js/*.js addons/*/static/src/css/*.css addons/*/static/src/xml/*.xml
+