summaryrefslogtreecommitdiff
path: root/mate/scalable/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'mate/scalable/Makefile.am')
-rw-r--r--mate/scalable/Makefile.am38
1 files changed, 38 insertions, 0 deletions
diff --git a/mate/scalable/Makefile.am b/mate/scalable/Makefile.am
new file mode 100644
index 0000000..3cfe589
--- /dev/null
+++ b/mate/scalable/Makefile.am
@@ -0,0 +1,38 @@
+themedir = $(datadir)/icons/mate/scalable
+
+install-data-local:
+ $(mkdir_p) $(DESTDIR)$(themedir); \
+ for dir in `cd $(top_srcdir)/mate/scalable && find . -type d | sed s/.//`; do \
+ $(mkdir_p) $(DESTDIR)$(themedir)$$dir; \
+ done; \
+ for file in `cd $(top_srcdir)/mate/scalable && find . -name "*.svg" | sed s@./@/@`; do \
+ $(install_sh_DATA) $(top_srcdir)/mate/scalable$$file $(DESTDIR)$(themedir)/$$file; \
+ done; \
+ if [ $(ICONMAP) != "false" ]; then \
+ cd $(DESTDIR)$(themedir); \
+ for size in `find . -mindepth 1 -maxdepth 1 -type d | sed s@./@@`; do \
+ cd $$size || continue ; \
+ echo -e "Going to set up icon mapping for $$size"; \
+ for dir in `find . -type d`; do \
+ context="`echo $$dir | cut -c 3-`"; \
+ if [ $$context ]; then \
+ $(ICONMAP) -c $$context; \
+ fi; \
+ done; \
+ cd ..; \
+ done; \
+ fi
+
+
+uninstall-local:
+ if [ -d "$(DESTDIR)$(themedir)" ]; then \
+ cd $(DESTDIR)$(themedir); \
+ for file in `find . -name *.svg | sed s@./@/@`; do \
+ rm -f $(DESTDIR)$(themedir)$$file; \
+ done;
+ fi
+
+MAINTAINERCLEANFILES = \
+ Makefile.in \
+ Makefile
+