~dobey/stopwatch/trunk

« back to all changes in this revision

Viewing changes to icons/Makefile.am

  • Committer: Rodney Dawes
  • Date: 2009-03-27 22:55:10 UTC
  • Revision ID: dobey@gnome.org-20090327225510-hph5hfc2fyfo0446
        Cleaned up code import into bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
themedir = $(datadir)/icons/hicolor
 
3
context = apps
 
4
 
 
5
icondirs = 32x32 48x48
 
6
icon_in_files = stopwatch.svg
 
7
icon_cache = $(icon_in_files:.svg=.rendercache)
 
8
 
 
9
iconame = $(icon_in_files:.svg=.png)
 
10
 
 
11
icon_srcdir = $(shell if test -d $(srcdir)/48x48; then echo "$(srcdir)"; else echo "$(builddir)"; fi)
 
12
 
 
13
%.rendercache: %.svg
 
14
        for size in $(icondirs); do \
 
15
                $(ICONRENDER) -s $$size $< > $@; \
 
16
        done
 
17
 
 
18
all: $(icon_cache)
 
19
 
 
20
dist-hook: $(icon_cache)
 
21
        for size in $(icondirs); do \
 
22
                cp -a $(icon_srcdir)/$$size $(distdir)/$$size; \
 
23
        done
 
24
 
 
25
install-data-local:
 
26
        for size in $(icondirs); do \
 
27
                $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$(context); \
 
28
                file="$(icon_srcdir)/$$size/$(context)/$(iconame)"; \
 
29
                $(install_sh_DATA) $$file $(DESTDIR)$(themedir)/$$size/$(context)/$(iconame); \
 
30
        done
 
31
 
 
32
uninstall-local:
 
33
        for size in $(icondirs); do \
 
34
                rm -f $(DESTDIR)$(themedir)/$$size/$(context)/$(iconame); \
 
35
        done
 
36
 
 
37
EXTRA_DIST =                    \
 
38
        $(icon_in_files)        \
 
39
        $(icon_cache)
 
40
 
 
41
MAINTAINERCLEANFILES =          \
 
42
        $(icon_cache)           \
 
43
        */$(context)/$(iconame) \
 
44
        Makefile.in