diff options
author | Perberos <[email protected]> | 2011-12-01 22:26:22 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-12-01 22:26:22 -0300 |
commit | 783bf11df04627b63812812fc7ba756248499883 (patch) | |
tree | 4b5f8b0c60647c2727dd14b94e73538934f5d7ba /src/Makefile.am | |
download | mate-icon-theme-783bf11df04627b63812812fc7ba756248499883.tar.bz2 mate-icon-theme-783bf11df04627b63812812fc7ba756248499883.tar.xz |
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..985ce3d --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,44 @@ + +icon_in_files = $(shell SRCDIR="$(srcdir)"; for i in `find $$SRCDIR -name "*.svg"`; do printf "$$i "; done) + +$(render_sizes): Makefile + +install-data-local: + for size in $(render_sizes); do \ + echo -e "Going to copy files for $$size"; \ + for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size && find . -name "*.png"`; do \ + context="`dirname $$file`"; \ + $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \ + $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file; \ + done; \ + done; \ + if [ $(ICONMAP) != "false" ]; then \ + cd $(DESTDIR)$(themedir); \ + for size in $(render_sizes); 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 + +## FIXME we should add a way to remove links generated by icon mapping +uninstall-local: + for size in $(render_sizes); do \ + for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size && find . -name "*.png"`; do \ + rm -f $(DESTDIR)$(themedir)/$$size/$$file; \ + done; \ + done + +EXTRA_DIST = \ + $(icon_in_files) + + +MAINTAINERCLEANFILES = \ + Makefile.in \ + $(icon_cache) |