summaryrefslogtreecommitdiff
path: root/src/spinner/Makefile.am
blob: 7e94edbfe19c3cca81b4e850457e7d98bb7c4835 (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
44
45
46
47
48
49
50

icon_in_files = $(shell SRCDIR="$(srcdir)"; for i in `find $$SRCDIR -name "*.svg"`; do printf "$$i "; done)

if ALLOW_RENDERING
render-png: $(icon_in_files) Makefile
	for file in $(icon_in_files); do \
		size='symbolic-up-to-32' \
		$(ICONTOOL_RENDER) -s $$size -o $(top_builddir)/$(SVGOUTDIR) $$file >/dev/null; \
	done

else
render-png: $(icon_in_files) Makefile

endif

$(symbolic_render_sizes): Makefile

render: render-png

all-local: render

install-data-local:
	      size='symbolic-up-to-32' ; \
	      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; \
	for file in `cd $(top_srcdir)/$(SVGOUTDIR)/symbolic-up-to-32; find . -name "*.svg"`; do \
		context="`dirname $$file`"; \
		$(mkdir_p) $(DESTDIR)$(themedir)/symbolic-up-to-32/$$context; \
		$(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/symbolic-up-to-32/$$file $(DESTDIR)$(themedir)/symbolic-up-to-32/$$file & \
	done; \
	wait

uninstall-local:
	      for file in `cd $(top_srcdir)/$(SVGOUTDIR)/symbolic-up-to-32; find . -name "*.svg"`; do \
		      rm -f $(DESTDIR)$(themedir)/symbolic-up-to-32/$$file; \
	      done

EXTRA_DIST =			\
	$(icon_in_files)


MAINTAINERCLEANFILES =		\
	*~			\
	Makefile.in		\
	$(icon_cache)

-include $(top_srcdir)/git.mk