[IMP] *: one Makefile to rules them all.
authorChristophe Simonis <chs@odoo.com>
Wed, 5 Nov 2014 18:15:14 +0000 (19:15 +0100)
committerChristophe Simonis <chs@odoo.com>
Wed, 5 Nov 2014 18:30:28 +0000 (19:30 +0100)
Create one unique generic Makefile to compile sass files.

Makefile [new file with mode: 0644]
addons/account_analytic_analysis/static/src/css/Makefile [deleted file]
addons/board/static/src/css/Makefile [deleted file]
addons/hr_timesheet_sheet/static/src/css/Makefile [deleted file]
addons/lunch/static/src/css/Makefile [deleted file]
addons/note/static/src/css/Makefile [deleted file]
addons/web/static/src/css/Makefile [deleted file]
addons/web_kanban/static/src/css/Makefile [deleted file]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..84d916e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+# NOTE: please keep your version of sass up to date: sudo gem update
+.PHONY: watch css
+SASS_FILES=$(wildcard addons/*/static/src/css/*.sass openerp/addons/*/static/src/css/*.sass)
+CSS_FILES=$(patsubst %.sass,%.css,${SASS_FILES})
+css: ${CSS_FILES}
+%.css: %.sass
+       sass -t expanded --compass --unix-newlines --sourcemap=none $< $@
+watch:
+       sass -t expanded --compass --unix-newlines --sourcemap=none --watch .:.
diff --git a/addons/account_analytic_analysis/static/src/css/Makefile b/addons/account_analytic_analysis/static/src/css/Makefile
deleted file mode 100644 (file)
index 21462c0..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-analytic.css: analytic.sass
-       sass -t expanded analytic.sass analytic.css
-
diff --git a/addons/board/static/src/css/Makefile b/addons/board/static/src/css/Makefile
deleted file mode 100644 (file)
index 0cb5ae7..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-dashboard.css: dashboard.sass
-       sass --trace -t expanded dashboard.sass dashboard.css
-
diff --git a/addons/hr_timesheet_sheet/static/src/css/Makefile b/addons/hr_timesheet_sheet/static/src/css/Makefile
deleted file mode 100644 (file)
index e60087d..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-timesheet.css: timesheet.sass
-       sass -t expanded timesheet.sass timesheet.css
-
diff --git a/addons/lunch/static/src/css/Makefile b/addons/lunch/static/src/css/Makefile
deleted file mode 100644 (file)
index 941e8db..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-lunch.css: lunch.sass
-       sass -t expanded lunch.sass lunch.css
-
diff --git a/addons/note/static/src/css/Makefile b/addons/note/static/src/css/Makefile
deleted file mode 100644 (file)
index 17bf009..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-note.css: note.sass
-       sass --trace -t expanded note.sass note.css
-
diff --git a/addons/web/static/src/css/Makefile b/addons/web/static/src/css/Makefile
deleted file mode 100644 (file)
index d6b4f4b..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-base.css: base.sass
-       sass --trace -t expanded base.sass base.css
-
diff --git a/addons/web_kanban/static/src/css/Makefile b/addons/web_kanban/static/src/css/Makefile
deleted file mode 100644 (file)
index cae8f74..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-kanban.css: kanban.sass
-       sass -t expanded kanban.sass kanban.css
-