build: Keep CSS updated when sass is installed

This commit is contained in:
Florian Müllner 2015-02-21 15:05:16 +01:00
parent 83648cf7d0
commit c749facedb
2 changed files with 8 additions and 0 deletions

View File

@ -242,6 +242,8 @@ if test -z "$GDBUS_CODEGEN"; then
AC_MSG_ERROR([gdbus-codegen not found])
fi
AC_PATH_PROG([SASS],[sass],[])
AC_CONFIG_FILES([
Makefile
data/Makefile

View File

@ -57,6 +57,12 @@ dist_theme_files = \
theme/gnome-shell-sass/gnome-shell-sass.doap \
$(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 -f -q --update $<; \
fi
resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/theme --generate-dependencies $(srcdir)/gnome-shell-theme.gresource.xml)
gnome-shell-theme.gresource: gnome-shell-theme.gresource.xml $(resource_files)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/theme $<