summaryrefslogtreecommitdiff
path: root/src/fullcolor/Makefile.am
blob: 47223a819857507c1304225222c213da7672df48 (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

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 "Going to copy files for $$size"; \
		for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size && find . -name "*.{png,svg}"`; do \
			context="`dirname $$file`"; \
			$(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \
			$(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file & \
		done; \
		wait; \
	done; \
	wait

## 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,svg}"`; do \
			rm -f $(DESTDIR)$(themedir)/$$size/$$file; \
		done; \
	done

EXTRA_DIST =			\
	$(icon_in_files)


MAINTAINERCLEANFILES =		\
	Makefile.in		\
	$(icon_cache)

-include $(top_srcdir)/git.mk