aboutsummaryrefslogtreecommitdiff
path: root/common/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'common/Makefile.am')
-rw-r--r--common/Makefile.am62
1 files changed, 62 insertions, 0 deletions
diff --git a/common/Makefile.am b/common/Makefile.am
new file mode 100644
index 0000000..fdfb02c
--- /dev/null
+++ b/common/Makefile.am
@@ -0,0 +1,62 @@
+themedir = $(datadir)/themes/Arc
+ithemedir = $(DESTDIR)$(themedir)
+
+install-data-local:
+ $(MKDIR_P) $(ithemedir)
+ cp --no-preserve=mode,ownership $(srcdir)/index.theme $(ithemedir)
+
+
+if ENABLE_GNOME_SHELL
+ cp -rH --no-preserve=mode,ownership $(srcdir)/gnome-shell/$(GNOME_VERSION) $(ithemedir)/gnome-shell
+endif # ENABLE_GNOME_SHELL
+
+
+if ENABLE_GTK2
+ cp -r --no-preserve=mode,ownership $(srcdir)/gtk-2.0 $(ithemedir)
+endif # ENABLE_GTK2
+
+
+if ENABLE_GTK3
+ cp -rH --no-preserve=mode,ownership $(srcdir)/gtk-3.0/$(GNOME_VERSION) $(ithemedir)/gtk-3.0
+
+ cd $(ithemedir)/gtk-3.0 && rm -f \
+ assets.svg \
+ README \
+ *.scss \
+ *.sh \
+ *.txt \
+ Gemfile*
+endif # ENABLE_GTK3
+
+
+if ENABLE_METACITY
+ cp -r --no-preserve=mode,ownership $(srcdir)/metacity-1 $(ithemedir)
+endif # ENABLE_METACITY
+
+
+if ENABLE_UNITY
+ cp -r --no-preserve=mode,ownership $(srcdir)/unity $(ithemedir)
+endif # ENABLE_UNITY
+
+
+if ENABLE_XFWM
+ cp -r --no-preserve=mode,ownership $(srcdir)/xfwm4 $(ithemedir)
+endif # ENABLE_XFWM
+
+
+uninstall-local:
+ rm -rf $(ithemedir)
+
+ -rmdir -p $(DESTDIR)$(datadir)/themes 2>/dev/null
+
+
+dist-hook:
+ cp -r \
+ gnome-shell \
+ gtk-2.0 \
+ gtk-3.0 \
+ metacity-1 \
+ unity \
+ xfwm4 \
+ index.theme \
+ $(distdir)