Browse Source

[IMP] *: one Makefile to rules them all.

Create one unique generic Makefile to compile sass files.
production/rebase-20171130
Christophe Simonis 7 years ago
parent
commit
388732dfa6
  1. 9
      Makefile
  2. 3
      addons/account_analytic_analysis/static/src/css/Makefile
  3. 3
      addons/board/static/src/css/Makefile
  4. 3
      addons/hr_timesheet_sheet/static/src/css/Makefile
  5. 3
      addons/lunch/static/src/css/Makefile
  6. 3
      addons/note/static/src/css/Makefile
  7. 3
      addons/web/static/src/css/Makefile
  8. 3
      addons/web_kanban/static/src/css/Makefile

9
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 .:.

3
addons/account_analytic_analysis/static/src/css/Makefile

@ -1,3 +0,0 @@
analytic.css: analytic.sass
sass -t expanded analytic.sass analytic.css

3
addons/board/static/src/css/Makefile

@ -1,3 +0,0 @@
dashboard.css: dashboard.sass
sass --trace -t expanded dashboard.sass dashboard.css

3
addons/hr_timesheet_sheet/static/src/css/Makefile

@ -1,3 +0,0 @@
timesheet.css: timesheet.sass
sass -t expanded timesheet.sass timesheet.css

3
addons/lunch/static/src/css/Makefile

@ -1,3 +0,0 @@
lunch.css: lunch.sass
sass -t expanded lunch.sass lunch.css

3
addons/note/static/src/css/Makefile

@ -1,3 +0,0 @@
note.css: note.sass
sass --trace -t expanded note.sass note.css

3
addons/web/static/src/css/Makefile

@ -1,3 +0,0 @@
base.css: base.sass
sass --trace -t expanded base.sass base.css

3
addons/web_kanban/static/src/css/Makefile

@ -1,3 +0,0 @@
kanban.css: kanban.sass
sass -t expanded kanban.sass kanban.css
Loading…
Cancel
Save