summaryrefslogtreecommitdiff
path: root/src/themes/Makefile.am
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 23:52:01 -0300
committerPerberos <[email protected]>2011-12-01 23:52:01 -0300
commit28a029a4990d2a84f9d6a0b890eba812ea503998 (patch)
tree7a69477d0dd6bf351801fa9698d95224e4fe47b6 /src/themes/Makefile.am
downloadmarco-28a029a4990d2a84f9d6a0b890eba812ea503998.tar.bz2
marco-28a029a4990d2a84f9d6a0b890eba812ea503998.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'src/themes/Makefile.am')
-rw-r--r--src/themes/Makefile.am53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/themes/Makefile.am b/src/themes/Makefile.am
new file mode 100644
index 00000000..a040a804
--- /dev/null
+++ b/src/themes/Makefile.am
@@ -0,0 +1,53 @@
+THEMES= \
+ ClearlooksRe \
+ eOS \
+ DustBlue \
+ WinMe \
+ Splint-Left \
+ Dopple \
+ Spidey-Left \
+ Splint \
+ Dopple-Left \
+ Spidey
+
+THEME_DIR=$(datadir)/themes
+THEME_SUBDIR=metacity-1
+
+install-data-local:
+ $(mkinstalldirs) $(DESTDIR)$(THEME_DIR); \
+ for THEME in $(THEMES); do \
+ echo '-- Installing theme '$$THEME; \
+ $(mkinstalldirs) $(DESTDIR)$(THEME_DIR)/$$THEME; \
+ $(mkinstalldirs) $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR); \
+ (installfiles=`find $(srcdir)/$$THEME -name "*.png" -o -name "*.xml"`; \
+ for i in $$installfiles; do \
+ echo '-- Installing '$$i ; \
+ $(INSTALL_DATA) $$i $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR) ; \
+ done) \
+ done
+
+uninstall-local:
+ for THEME in $(THEMES); do \
+ echo '-- Uninstalling theme '$$THEME; \
+ (uninstallfiles=`find $(srcdir)/$$THEME -name "*.png" -o -name "*.xml"`; \
+ for i in $$uninstallfiles; do \
+ i=`basename $$i`; \
+ echo '-- Removing '$$i ; \
+ rm -f $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR)/$$i ; \
+ done); \
+ rmdir $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR) || :; \
+ rmdir $(DESTDIR)$(THEME_DIR)/$$THEME || :; \
+ done
+ -rmdir $(DESTDIR)$(THEME_DIR)
+
+dist-hook:
+ mkdir $(distdir)/themes; \
+ for THEME in $(THEMES); do \
+ echo '-- Disting theme '$$THEME; \
+ mkdir $(distdir)/$$THEME; \
+ (installfiles=`find $(srcdir)/$$THEME -name "*.png" -o -name "*.xml"`; \
+ for i in $$installfiles; do \
+ echo '-- Disting '$$i ; \
+ cp $$i $(distdir)/$$THEME; \
+ done) \
+ done