aboutsummaryrefslogtreecommitdiff
path: root/common/Makefile.am
diff options
context:
space:
mode:
authorHorst31802015-05-28 17:41:22 +0200
committerHorst31802015-05-28 17:41:22 +0200
commitf21150e179d2ceae1e743041fbf9ea9eddc93d9a (patch)
treead8b0021f8f1501e5b1935a9053bdab5c6bdd8fc /common/Makefile.am
parentd533557384041bfc1a73c0ee9f65c4184a4ec92a (diff)
downloadsolarc-theme-f21150e179d2ceae1e743041fbf9ea9eddc93d9a.tar.gz
solarc-theme-f21150e179d2ceae1e743041fbf9ea9eddc93d9a.tar.xz
solarc-theme-f21150e179d2ceae1e743041fbf9ea9eddc93d9a.zip
add build system
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)