summaryrefslogtreecommitdiffstats
path: root/IconThemes/Makefile.am
blob: 3e7b6239447238bc3fa0181f9413a9f2c452fb6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
## kdeaccessibility/icontheme/Makefile.am
## (C) 1997-2001 Stephan Kulow
## (C) 2005 Gunnar Schmi Dt

install-exec-am: install-data-local

ICONTHEMES=mono

# For Themes
themesdir =  $(kde_datadir)/kthememgr/Themes
install-data-local:
	@for theme in $(ICONTHEMES) ; do \
	    $(mkinstalldirs) $(DESTDIR)$(kde_icondir)/$$theme ; \
	    $(INSTALL_DATA) $(top_srcdir)/IconThemes/$$theme/index.theme $(DESTDIR)$(kde_icondir)/$$theme ; \
	    sizes=`cd $(top_srcdir)/IconThemes/$$theme && ls -1`; \
	    for size in $$sizes ; do \
	      if [ -d $(top_srcdir)/IconThemes/$$theme/$$size -a $$size != "CVS" -a $$size != ".svn" ]; then \
	        $(mkinstalldirs) $(DESTDIR)$(kde_icondir)/$$theme/$$size ; \
	        for group in actions apps devices filesystems mimetypes; do \
	          if [ -d $(top_srcdir)/IconThemes/$$theme/$$size/$$group ]; then \
	              echo "installing $$theme/$$size/$$group" ; \
	            $(mkinstalldirs) $(DESTDIR)$(kde_icondir)/$$theme/$$size/$$group ; \
		    pngs=`cd $(top_srcdir)/IconThemes/$$theme/$$size/$$group && ls -1 *.png 2> /dev/null`; \
		    for png in $$pngs; do $(INSTALL_DATA) $(top_srcdir)/IconThemes/$$theme/$$size/$$group/$$png \
	                 $(DESTDIR)$(kde_icondir)/$$theme/$$size/$$group/$$png ; done; \
		    mngs=`cd $(top_srcdir)/IconThemes/$$theme/$$size/$$group && ls -1 *.mng 2> /dev/null`; \
		    for mng in $$mngs; do \
		         $(INSTALL_DATA) $(top_srcdir)/IconThemes/$$theme/$$size/$$group/$$mng \
			 $(DESTDIR)$(kde_icondir)/$$theme/$$size/$$group/$$mng ; done; \
		    svgzs=`cd $(top_srcdir)/IconThemes/$$theme/$$size/$$group && ls -1 *.svgz 2> /dev/null`; \
		    for svgz in $$svgzs; do $(INSTALL_DATA) $(top_srcdir)/IconThemes/$$theme/$$size/$$group/$$svgz \
	                 $(DESTDIR)$(kde_icondir)/$$theme/$$size/$$group/$$svgz ; done; \
		    if [ $$group = "actions" -a -d $(top_srcdir)/IconThemes/$$theme/$$size/$$group/kde ]; then \
		      (cd $(top_srcdir)/IconThemes/$$theme/$$size/$$group/kde && \
		      $(bindir)/kimage_concat kde- kde.png) ;\
		      $(INSTALL_DATA) $(top_srcdir)/IconThemes/$$theme/$$size/$$group/kde/kde.png \
			      $(DESTDIR)$(kde_icondir)/$$theme/$$size/$$group ; \
		    fi  ; \
		  fi ; \
	        done ; \
	      fi ; \
	    done ; \
	  done