~ubuntu-branches/ubuntu/natty/gnome-icon-theme/natty

« back to all changes in this revision

Viewing changes to src/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-06-10 11:50:31 UTC
  • mfrom: (1.1.44 upstream)
  • Revision ID: james.westby@ubuntu.com-20100610115031-d5kn01lfqthbzcim
Tags: 2.30.3-1ubuntu1
* Merge with Debian unstable, remaining Ubuntu changes:
* debian/control.in:
  - Add Vcs-Bzr link
* debian/rules:
  - Install distributor icons
  - Use the --enable-icon-mapping configure option
* debian/prerm:
* debian/postinst:
  - Update alternatives for Ubuntu icon
* debian/source:
  - Use source version 3.0
* debian/ubuntu-icons: 
  - Ubuntu logo and cd isos logos
* debian/watch: 
  - Watch unstable versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
icon_in_files = $(shell SRCDIR="$(srcdir)"; for i in `find $$SRCDIR -name "*.svg"`; do printf "$$i "; done)
 
3
 
 
4
if ALLOW_RENDERING
 
5
render-png: $(icon_in_files) Makefile
 
6
        for file in $(icon_in_files); do \
 
7
                for size in $(render_sizes); do \
 
8
                        $(ICONTOOL_RENDER) -s $$size -o $(top_builddir)/$(SVGOUTDIR) $$file >/dev/null; \
 
9
                done; \
 
10
        done
 
11
 
 
12
else
 
13
render-png: $(icon_in_files) Makefile
 
14
        if test "x$(top_srcdir)" != "x$(top_builddir)"; then \
 
15
                cp -a $(top_srcdir)/$(SVGOUTDIR) $(top_builddir)/$(SVGOUTDIR); \
 
16
        fi
 
17
 
 
18
endif
 
19
 
 
20
$(render_sizes): Makefile
 
21
 
 
22
render: render-png
 
23
 
 
24
install-data-local:
 
25
        for size in $(render_sizes); do \
 
26
                echo -e "Going to copy files for $$size"; \
 
27
                for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size && find . -name "*.png"`; do \
 
28
                        context="`dirname $$file`"; \
 
29
                        $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \
 
30
                        $(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file; \
 
31
                done; \
 
32
        done; \
 
33
        if [ $(ICONMAP) != "false" ]; then \
 
34
                cd $(DESTDIR)$(themedir); \
 
35
                for size in $(render_sizes); do \
 
36
                        cd $$size || continue; \
 
37
                        echo -e "Going to set up icon mapping for $$size"; \
 
38
                        for dir in `find . -type d`; do \
 
39
                                context="`echo $$dir | cut -c 3-`"; \
 
40
                                if [ $$context ]; then \
 
41
                                        $(ICONMAP) -c $$context; \
 
42
                                fi; \
 
43
                        done; \
 
44
                        cd ..; \
 
45
                done; \
 
46
        fi
 
47
 
 
48
## FIXME we should add a way to remove links generated by icon mapping
 
49
uninstall-local:
 
50
        for size in $(render_sizes); do \
 
51
                for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size && find . -name "*.png"`; do \
 
52
                        rm -f $(DESTDIR)$(themedir)/$$size/$$file; \
 
53
                done; \
 
54
        done
 
55
 
 
56
EXTRA_DIST =                    \
 
57
        $(icon_in_files)
 
58
 
 
59
 
 
60
MAINTAINERCLEANFILES =          \
 
61
        Makefile.in             \
 
62
        $(icon_cache)