1
0
mirror of https://github.com/horst3180/arc-theme.git synced 2024-10-27 19:04:02 +00:00
horst3180_arc-theme/common/Makefile.am

362 lines
9.4 KiB
Makefile
Raw Normal View History

if !ENABLE_TRANSPARENCY
themedir = $(datadir)/themes/Arc-solid
themedarkerdir = $(datadir)/themes/Arc-Darker-solid
themedarkdir = $(datadir)/themes/Arc-Dark-solid
else
2015-07-10 14:38:57 +00:00
themedir = $(datadir)/themes/Arc
themedarkerdir = $(datadir)/themes/Arc-Darker
themedarkdir = $(datadir)/themes/Arc-Dark
endif
2015-07-10 14:38:57 +00:00
ithemedir = $(DESTDIR)$(themedir)
ithemedarkerdir = $(DESTDIR)$(themedarkerdir)
ithemedarkdir = $(DESTDIR)$(themedarkdir)
2015-05-28 15:41:22 +00:00
2015-10-07 23:17:03 +00:00
install-exec-hook:
2015-05-28 15:41:22 +00:00
install-data-local:
2015-07-10 14:38:57 +00:00
if ENABLE_LIGHT
2015-05-28 15:41:22 +00:00
$(MKDIR_P) $(ithemedir)
cp $(srcdir)/index.theme $(ithemedir)
2015-07-10 14:38:57 +00:00
endif # ENABLE_LIGHT
if ENABLE_DARKER
$(MKDIR_P) $(ithemedarkerdir)
cp $(srcdir)/index.theme-darker $(ithemedarkerdir)/index.theme
2015-07-10 14:38:57 +00:00
endif # ENABLE_LIGHT
if ENABLE_DARK
$(MKDIR_P) $(ithemedarkdir)
cp $(srcdir)/index.theme-dark $(ithemedarkdir)/index.theme
2015-07-10 14:38:57 +00:00
endif # ENABLE_DARK
2015-05-28 15:41:22 +00:00
2015-08-13 22:05:57 +00:00
if ENABLE_CINNAMON
$(MKDIR_P) $(ithemedir)/cinnamon
cd $(srcdir)/cinnamon && cp thumbnail.png $(ithemedir)/cinnamon
2018-01-08 18:29:33 +00:00
sassc $(srcdir)/cinnamon/sass/cinnamon.scss $(srcdir)/cinnamon/cinnamon.css;
2016-01-15 22:30:09 +00:00
cd $(srcdir)/cinnamon && cp -R \
2015-08-13 22:05:57 +00:00
common-assets \
light-assets \
cinnamon.css \
$(ithemedir)/cinnamon
if ENABLE_DARK
$(MKDIR_P) $(ithemedarkdir)/cinnamon
cd $(srcdir)/cinnamon && cp thumbnail-dark.png $(ithemedarkdir)/cinnamon/thumbnail.png
2018-01-08 18:29:33 +00:00
sassc $(srcdir)/cinnamon/sass/cinnamon-dark.scss $(srcdir)/cinnamon/cinnamon-dark.css;
2016-01-15 22:30:09 +00:00
cd $(srcdir)/cinnamon && cp -R \
common-assets \
dark-assets \
$(ithemedarkdir)/cinnamon
2016-01-15 22:30:09 +00:00
cd $(srcdir)/cinnamon && cp -R \
cinnamon-dark.css \
$(ithemedarkdir)/cinnamon/cinnamon.css
endif # ENABLE_DARK
2015-08-13 22:05:57 +00:00
endif # ENABLE_GNOME_SHELL
2015-05-28 15:41:22 +00:00
if ENABLE_GNOME_SHELL
2015-07-17 12:34:04 +00:00
$(MKDIR_P) $(ithemedir)/gnome-shell
2018-01-08 18:33:27 +00:00
sassc $(srcdir)/gnome-shell/$(GNOME_VERSION)/sass/gnome-shell.scss $(srcdir)/gnome-shell/$(GNOME_VERSION)/gnome-shell.css;
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gnome-shell/$(GNOME_VERSION) && cp -R \
2015-08-13 22:05:57 +00:00
common-assets \
light-assets \
2015-07-17 12:34:04 +00:00
gnome-shell.css \
$(ithemedir)/gnome-shell
if ENABLE_DARK
$(MKDIR_P) $(ithemedarkdir)/gnome-shell
2018-01-08 18:33:27 +00:00
sassc $(srcdir)/gnome-shell/$(GNOME_VERSION)/sass/gnome-shell-dark.scss $(srcdir)/gnome-shell/$(GNOME_VERSION)/gnome-shell-dark.css;
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gnome-shell/$(GNOME_VERSION) && cp -R \
common-assets \
dark-assets \
$(ithemedarkdir)/gnome-shell
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gnome-shell/$(GNOME_VERSION) && cp -R \
gnome-shell-dark.css \
$(ithemedarkdir)/gnome-shell/gnome-shell.css
endif # ENABLE_DARK
2015-05-28 15:41:22 +00:00
endif # ENABLE_GNOME_SHELL
if ENABLE_GTK2
2015-07-10 14:38:57 +00:00
if ENABLE_LIGHT
2015-07-17 12:34:04 +00:00
$(MKDIR_P) $(ithemedir)/gtk-2.0
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-2.0 && cp -R \
2015-07-17 12:34:04 +00:00
assets \
menubar-toolbar \
*.rc \
gtkrc \
$(ithemedir)/gtk-2.0
2015-07-10 14:38:57 +00:00
endif # ENABLE_LIGHT
if ENABLE_DARKER
2015-07-17 12:34:04 +00:00
$(MKDIR_P) $(ithemedarkerdir)/gtk-2.0
2015-07-10 14:38:57 +00:00
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-2.0 && cp -R \
2015-07-17 12:34:04 +00:00
assets \
menubar-toolbar \
*.rc \
$(ithemedarkerdir)/gtk-2.0
2015-07-10 14:38:57 +00:00
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-2.0 && cp -R \
2015-07-17 12:34:04 +00:00
gtkrc-darker \
$(ithemedarkerdir)/gtk-2.0/gtkrc
2015-07-10 14:38:57 +00:00
endif # ENABLE_DARKER
if ENABLE_DARK
2015-07-17 12:34:04 +00:00
$(MKDIR_P) $(ithemedarkdir)/gtk-2.0
2015-07-10 14:38:57 +00:00
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-2.0 && cp -R \
2015-07-17 12:34:04 +00:00
menubar-toolbar \
*.rc \
$(ithemedarkdir)/gtk-2.0
2015-07-10 14:38:57 +00:00
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-2.0 && cp -R \
2015-07-17 12:34:04 +00:00
assets-dark \
$(ithemedarkdir)/gtk-2.0/assets
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-2.0 && cp -R \
2015-07-17 12:34:04 +00:00
gtkrc-dark \
$(ithemedarkdir)/gtk-2.0/gtkrc
2015-07-10 14:38:57 +00:00
endif # ENABLE_DARK
2015-05-28 15:41:22 +00:00
endif # ENABLE_GTK2
if ENABLE_GTK3
2015-07-10 14:38:57 +00:00
if ENABLE_LIGHT
2015-07-17 12:34:04 +00:00
$(MKDIR_P) $(ithemedir)/gtk-3.0
2015-07-10 14:38:57 +00:00
cd $(srcdir)/gtk-3.0 && cp thumbnail.png $(ithemedir)/gtk-3.0
2017-12-18 19:24:33 +00:00
@if [ "$(GNOME_VERSION)" != "3.18" ]; then \
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk.css;\
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk-dark.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk-dark.css;\
fi
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-3.0/$(GNOME_VERSION) && cp -R \
2015-07-17 12:34:04 +00:00
assets \
gtk.css \
gtk-dark.css \
$(ithemedir)/gtk-3.0
2015-07-10 14:38:57 +00:00
endif # ENABLE_LIGHT
if ENABLE_DARKER
2015-07-17 12:34:04 +00:00
$(MKDIR_P) $(ithemedarkerdir)/gtk-3.0
2015-07-10 14:38:57 +00:00
cd $(srcdir)/gtk-3.0 && cp thumbnail.png $(ithemedarkerdir)/gtk-3.0
2017-12-18 19:24:33 +00:00
@if [ "$(GNOME_VERSION)" != "3.18" ]; then \
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk-dark.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk-dark.css;\
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk-darker.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk-darker.css;\
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk.css;\
fi
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-3.0/$(GNOME_VERSION) && cp -R \
2015-07-17 12:34:04 +00:00
assets \
gtk-dark.css \
$(ithemedarkerdir)/gtk-3.0
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-3.0/$(GNOME_VERSION) && cp -R \
2015-12-28 15:10:27 +00:00
gtk-darker.css \
$(ithemedarkerdir)/gtk-3.0/gtk.css
2015-07-10 14:38:57 +00:00
endif # ENABLE_DARKER
if ENABLE_DARK
2015-07-17 12:34:04 +00:00
$(MKDIR_P) $(ithemedarkdir)/gtk-3.0
2015-07-10 14:38:57 +00:00
cd $(srcdir)/gtk-3.0 && cp thumbnail-dark.png $(ithemedarkdir)/gtk-3.0/thumbnail.png
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-3.0/$(GNOME_VERSION) && cp -R \
2015-07-17 12:34:04 +00:00
assets \
$(ithemedarkdir)/gtk-3.0
2015-07-10 14:38:57 +00:00
2017-12-18 19:24:33 +00:00
@if [ "$(GNOME_VERSION)" != "3.18" ]; then \
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk-dark.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk-dark.css;\
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk.css;\
fi
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-3.0/$(GNOME_VERSION) && cp -R \
2015-12-28 15:10:27 +00:00
gtk-dark.css \
$(ithemedarkdir)/gtk-3.0/gtk.css
2015-07-10 14:38:57 +00:00
endif # ENABLE_DARK
2015-06-03 20:23:22 +00:00
if !ENABLE_TRANSPARENCY
2015-07-10 14:38:57 +00:00
if ENABLE_LIGHT
2017-12-18 19:24:33 +00:00
@if [ "$(GNOME_VERSION)" != "3.18" ]; then \
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk-solid.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk-solid.css;\
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk-solid-dark.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk-solid-dark.css;\
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk.css;\
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk-dark.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk-dark.css;\
fi
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-3.0/$(GNOME_VERSION) && cp -R \
2015-12-28 15:10:27 +00:00
gtk-solid.css \
$(ithemedir)/gtk-3.0/gtk.css
2015-07-17 12:34:04 +00:00
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-3.0/$(GNOME_VERSION) && cp -R \
2015-12-28 15:10:27 +00:00
gtk-solid-dark.css \
$(ithemedir)/gtk-3.0/gtk-dark.css
2015-07-10 14:38:57 +00:00
endif # ENABLE_LIGHT
if ENABLE_DARKER
2017-12-18 19:24:33 +00:00
@if [ "$(GNOME_VERSION)" != "3.18" ]; then \
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk-solid-darker.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk-solid-darker.css;\
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk-solid-dark.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk-solid-dark.css;\
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk.css;\
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk-dark.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk-dark.css;\
fi
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-3.0/$(GNOME_VERSION) && cp -R \
2015-12-28 15:10:27 +00:00
gtk-solid-darker.css \
$(ithemedarkerdir)/gtk-3.0/gtk.css
2015-07-17 12:34:04 +00:00
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-3.0/$(GNOME_VERSION) && cp -R \
2015-12-28 15:10:27 +00:00
gtk-solid-dark.css \
$(ithemedarkerdir)/gtk-3.0/gtk-dark.css
2015-07-10 14:38:57 +00:00
endif # ENABLE_DARKER
if ENABLE_DARK
2017-12-18 19:24:33 +00:00
@if [ "$(GNOME_VERSION)" != "3.18" ]; then \
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk-solid-dark.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk-solid-dark.css;\
sassc $(srcdir)/gtk-3.0/$(GNOME_VERSION)/sass/gtk.scss $(srcdir)/gtk-3.0/$(GNOME_VERSION)/gtk.css;\
fi
2016-01-15 22:30:09 +00:00
cd $(srcdir)/gtk-3.0/$(GNOME_VERSION) && cp -R \
2015-12-28 15:10:27 +00:00
gtk-solid-dark.css \
$(ithemedarkdir)/gtk-3.0/gtk.css
2015-07-10 14:38:57 +00:00
endif # ENABLE_DARK
2015-06-03 20:23:22 +00:00
endif #!ENABLE_TRANSPARENCY
2015-05-28 15:41:22 +00:00
endif # ENABLE_GTK3
if ENABLE_METACITY
2015-07-10 14:38:57 +00:00
if ENABLE_LIGHT
2016-01-15 22:30:09 +00:00
cp -R $(srcdir)/metacity-1 $(ithemedir)
2015-07-10 14:38:57 +00:00
cd $(ithemedir)/metacity-1 && rm metacity-theme-1-dark.xml metacity-theme-2-dark.xml thumbnail-dark.png
2015-07-10 14:38:57 +00:00
endif # ENABLE_LIGHT
if ENABLE_DARKER
2016-01-15 22:30:09 +00:00
cp -R $(srcdir)/metacity-1 $(ithemedarkerdir)
2015-07-10 14:38:57 +00:00
cd $(ithemedarkerdir)/metacity-1 && \
mv metacity-theme-1-dark.xml metacity-theme-1.xml && \
mv metacity-theme-2-dark.xml metacity-theme-2.xml && \
mv thumbnail-dark.png thumbnail.png
2015-07-10 14:38:57 +00:00
endif # ENABLE_DARKER
if ENABLE_DARK
2016-01-15 22:30:09 +00:00
cp -R $(srcdir)/metacity-1 $(ithemedarkdir)
2015-07-10 14:38:57 +00:00
cd $(ithemedarkdir)/metacity-1 && \
mv metacity-theme-1-dark.xml metacity-theme-1.xml && \
mv metacity-theme-2-dark.xml metacity-theme-2.xml && \
mv thumbnail-dark.png thumbnail.png
2015-07-10 14:38:57 +00:00
endif # ENABLE_DARK
2015-05-28 15:41:22 +00:00
endif # ENABLE_METACITY
if ENABLE_UNITY
2015-07-10 14:38:57 +00:00
if ENABLE_LIGHT
2016-01-15 22:30:09 +00:00
cp -R $(srcdir)/unity $(ithemedir)
2015-07-10 14:38:57 +00:00
cd $(ithemedir)/unity && rm -rf window-buttons-dark
endif # ENABLE_LIGHT
if ENABLE_DARKER
2016-01-15 22:30:09 +00:00
cp -R $(srcdir)/unity $(ithemedarkerdir)
2015-07-10 14:38:57 +00:00
cd $(ithemedarkerdir)/unity && \
rm -rf window-buttons && \
mv window-buttons-dark window-buttons
endif # ENABLE_DARKER
if ENABLE_DARK
2016-01-15 22:30:09 +00:00
cp -R $(srcdir)/unity $(ithemedarkdir)
2015-07-10 14:38:57 +00:00
cd $(ithemedarkdir)/unity && \
rm -rf window-buttons && \
mv window-buttons-dark window-buttons
endif # ENABLE_DARK
2015-05-28 15:41:22 +00:00
endif # ENABLE_UNITY
if ENABLE_XFWM
2015-07-10 14:38:57 +00:00
if ENABLE_LIGHT
$(MKDIR_P) $(ithemedir)/xfwm4
cd $(srcdir)/xfwm4 && \
cp -R assets/*.png $(ithemedir)/xfwm4 && \
cp themerc $(ithemedir)/xfwm4/themerc
2015-07-10 14:38:57 +00:00
endif # ENABLE_LIGHT
if ENABLE_DARKER
$(MKDIR_P) $(ithemedarkerdir)/xfwm4
cd $(srcdir)/xfwm4 && \
cp -R assets-dark/*.png $(ithemedarkerdir)/xfwm4 && \
cp themerc-dark $(ithemedarkerdir)/xfwm4/themerc
2015-07-10 14:38:57 +00:00
endif # ENABLE_DARKER
if ENABLE_DARK
$(MKDIR_P) $(ithemedarkdir)/xfwm4
cd $(srcdir)/xfwm4 && \
cp -R assets-dark/*.png $(ithemedarkdir)/xfwm4 && \
cp themerc-dark $(ithemedarkdir)/xfwm4/themerc
2015-07-10 14:38:57 +00:00
endif # ENABLE_DARK
2015-05-28 15:41:22 +00:00
endif # ENABLE_XFWM
uninstall-local:
rm -rf $(ithemedir)
2015-08-23 11:38:23 +00:00
if ENABLE_DARKER
rm -rf $(ithemedarkerdir)
endif # ENABLE_DARKER
if ENABLE_DARK
rm -rf $(ithemedarkdir)
endif # ENABLE_DARK
2015-05-28 15:41:22 +00:00
2015-08-23 11:38:23 +00:00
EXTRA_DIST = $(srcdir)/cinnamon \
$(srcdir)/gnome-shell \
$(srcdir)/gtk-2.0 \
$(srcdir)/gtk-3.0 \
$(srcdir)/metacity-1 \
$(srcdir)/unity \
$(srcdir)/xfwm4 \
$(srcdir)/index.theme \
$(srcdir)/index.theme-darker \
$(srcdir)/index.theme-dark