Debian Codegraph @

themes/HighContrast/icons/Makefile.am

raw
1 themedir = $(datadir)/icons/HighContrast
2 theme_DATA = index.theme
3
4 render_sizes = "16x16" "22x22" "24x24" "32x32" "48x48" "256x256" "scalable"
5
6 THEME_DIRS=$(shell set -e; cd "$(srcdir)"; SIZES="$(render_sizes)"; for size in $$SIZES; do for dir in `find $$size/* -type d`; do printf "$$dir,"; done; done;)
7
8 %.theme: %.theme.in Makefile
9 dirs="$(THEME_DIRS)"; \
10 sed -e "s|\@THEME_DIRS\@|$$dirs|g" < $< > $@; \
11 echo "" >> $@; \
12 for dir in `echo $$dirs | sed -e "s/,/ /g"`; do \
13 sizefull="`dirname $$dir`"; \
14 if test "$$sizefull" = "scalable"; then \
15 size="16"; \
16 else \
17 size="`echo $$sizefull | sed -e 's/x.*$$//g'`"; \
18 fi; \
19 context="`basename $$dir`"; \
20 echo "[$$dir]" >> $@; \
21 if test "$$context" = "actions"; then \
22 echo "Context=Actions" >> $@; \
23 fi; \
24 if test "$$context" = "animations"; then \
25 echo "Context=Animations" >> $@; \
26 fi; \
27 if test "$$context" = "apps"; then \
28 echo "Context=Applications" >> $@; \
29 fi; \
30 if test "$$context" = "categories"; then \
31 echo "Context=Categories" >> $@; \
32 fi; \
33 if test "$$context" = "devices"; then \
34 echo "Context=Devices" >> $@; \
35 fi; \
36 if test "$$context" = "emblems"; then \
37 echo "Context=Emblems" >> $@; \
38 fi; \
39 if test "$$context" = "emotes"; then \
40 echo "Context=Emotes" >> $@; \
41 fi; \
42 if test "$$context" = "intl"; then \
43 echo "Context=International" >> $@; \
44 fi; \
45 if test "$$context" = "mimetypes"; then \
46 echo "Context=MimeTypes" >> $@; \
47 fi; \
48 if test "$$context" = "places"; then \
49 echo "Context=Places" >> $@; \
50 fi; \
51 if test "$$context" = "status"; then \
52 echo "Context=Status" >> $@; \
53 fi; \
54 if test "$$context" = "stock"; then \
55 echo "Context=Stock" >> $@; \
56 fi; \
57 echo "Size=$$size" >> $@; \
58 if test "$$sizefull" = "scalable"; then \
59 echo "MinSize=8" >> $@; \
60 echo "MaxSize=512" >> $@; \
61 echo "Type=Scalable" >> $@; \
62 elif test "$$size" = "256"; then \
63 echo "MinSize=56" >> $@; \
64 echo "MaxSize=512" >> $@; \
65 echo "Type=Scalable" >> $@; \
66 elif test "$$context" = "stock"; then \
67 echo "Type=Scalable" >> $@; \
68 else \
69 echo "Type=Fixed" >> $@; \
70 fi; \
71 echo "" >> $@; \
72 done
73
74 @INTLTOOL_THEME_RULE@
75
76 install-data-local:
77 for size in $(render_sizes); do \
78 echo -e "Going to copy files for $$size"; \
79 for file in `cd $(srcdir)/$$size && find . \( -name "*.png" -or -name "*.svg" \)`; do \
80 context="`dirname $$file`"; \
81 $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \
82 $(install_sh_DATA) $(srcdir)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file; \
83 done; \
84 done
85
86 uninstall-local:
87 for size in $(render_sizes); do \
88 for file in `cd $(srcdir)/$$size && find . \( -name "*.png" -or -name "*.svg" \)`; do \
89 rm -f $(DESTDIR)$(themedir)/$$size/$$file; \
90 done; \
91 done
92
93 gtk_update_icon_cache = $(GTK_UPDATE_ICON_CACHE) -f -t $(themedir)
94
95 install-data-hook: update-icon-cache
96 uninstall-hook: update-icon-cache
97
98 update-icon-cache:
99 @-if test -z "$(DESTDIR)"; then \
100 echo "Updating Gtk icon cache."; \
101 $(gtk_update_icon_cache); \
102 else \
103 echo "*** Icon cache not updated. After (un)install, run this:"; \
104 echo "*** $(gtk_update_icon_cache)"; \
105 fi
106
107 EXTRA_DIST = \
108 index.theme.in \
109 index.theme
110
111 DISTCLEANFILES = index.theme