diff --git a/configure.ac b/configure.ac index 8a4175dc..cd6f36e8 100644 --- a/configure.ac +++ b/configure.ac @@ -76,6 +76,8 @@ done AC_SUBST(ENABLED_EXTENSIONS, [$ENABLED_EXTENSIONS]) +AC_PATH_PROG([SASS],[sass],[]) + dnl Please keep this sorted alphabetically AC_CONFIG_FILES([ data/Makefile diff --git a/data/Makefile.am b/data/Makefile.am index ff70c5cb..74717ac6 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -24,6 +24,20 @@ theme_DATA = \ $(srcdir)/gnome-classic-high-contrast.css \ $(NULL) +theme_sources = \ + $(srcdir)/gnome-classic.scss \ + $(srcdir)/gnome-shell-sass/_colors.scss \ + $(srcdir)/gnome-shell-sass/_common.scss \ + $(srcdir)/gnome-shell-sass/_drawing.scss \ + $(srcdir)/gnome-shell-sass/_high-contrast-colors.scss \ + $(NULL) + +%.css: %.scss $(theme_sources) + @if test -n "$(SASS)"; then \ + if $(AM_V_P); then PS4= set -x; else echo " GEN $@"; fi; \ + $(SASS) --sourcemap=none --update -f -q $<; \ + fi + gsettings_in_files = org.gnome.shell.extensions.classic-overrides.gschema.xml.in gsettings_SCHEMAS = $(gsettings_in_files:.xml.in=.xml)