mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
build: De-duplicate options to sassc
If we want to change the list of options we use with sassc, not having to copy-paste them in multiple rules would be a good start.
This commit is contained in:
parent
bc0a08eced
commit
3b9233910f
@ -1314,17 +1314,19 @@ scss_verbose = $(scss_verbose_@AM_V@)
|
||||
scss_verbose_ = $(scss_verbose_@AM_DEFAULT_V@)
|
||||
scss_verbose_0 = @echo " SCSS $@";
|
||||
|
||||
SASSC_OPTS = -a
|
||||
|
||||
theme/Adwaita/gtk-contained.css: $(top_srcdir)/gtk/theme/Adwaita/gtk-contained.scss $(adwaita_theme_scss)
|
||||
$(scss_verbose) $(MKDIR_P) $(dir $@) && $(SASSC) -a $< $@ || rm -f $@
|
||||
$(scss_verbose) $(MKDIR_P) $(dir $@) && $(SASSC) $(SASSC_OPTS) $< $@ || rm -f $@
|
||||
|
||||
theme/Adwaita/gtk-contained-dark.css: $(top_srcdir)/gtk/theme/Adwaita/gtk-contained-dark.scss $(adwaita_theme_scss)
|
||||
$(scss_verbose) $(MKDIR_P) $(dir $@) && $(SASSC) -a $< $@ || rm -f $@
|
||||
$(scss_verbose) $(MKDIR_P) $(dir $@) && $(SASSC) $(SASSC_OPTS) $< $@ || rm -f $@
|
||||
|
||||
theme/HighContrast/gtk-contained.css: $(top_srcdir)/gtk/theme/HighContrast/gtk-contained.scss $(highcontrast_theme_scss)
|
||||
$(scss_verbose) $(MKDIR_P) $(dir $@) && $(SASSC) -a $< $@ || rm -f $@
|
||||
$(scss_verbose) $(MKDIR_P) $(dir $@) && $(SASSC) $(SASSC_OPTS) $< $@ || rm -f $@
|
||||
|
||||
theme/HighContrast/gtk-contained-inverse.css: $(top_srcdir)/gtk/theme/HighContrast/gtk-contained-inverse.scss $(highcontrast_theme_scss)
|
||||
$(scss_verbose) $(MKDIR_P) $(dir $@) && $(SASSC) -a $< $@ || rm -f $@
|
||||
$(scss_verbose) $(MKDIR_P) $(dir $@) && $(SASSC) $(SASSC_OPTS) $< $@ || rm -f $@
|
||||
|
||||
endif # REBUILD_SCSS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user