multiple icon sizes for apps and mimetypes
[debian/gnuradio] / grc / freedesktop / Makefile.am
1 #
2 # Copyright 2008 Free Software Foundation, Inc.
3 #
4 # This file is part of GNU Radio
5 #
6 # GNU Radio is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
9 # any later version.
10 #
11 # GNU Radio is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Radio; see the file COPYING.  If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street,
19 # Boston, MA 02110-1301, USA.
20 #
21
22 include $(top_srcdir)/grc/Makefile.inc
23
24 sizes = 32 48 64 128 256
25
26 install-data-local:
27         for size in $(sizes); do \
28                 xdg-icon-resource install --context mimetypes --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png application-gnuradio-grc; \
29                 xdg-icon-resource install --context apps --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png gnuradio-grc; \
30         done
31         xdg-mime install --mode system $(srcdir)/gnuradio-grc.xml
32         xdg-desktop-menu install --mode system $(srcdir)/gnuradio-grc.desktop
33         xdg-desktop-menu install --mode system $(srcdir)/gnuradio-usrp_diagnostics.desktop
34
35 uninstall-local:
36         for size in $(sizes); do \
37                 xdg-icon-resource uninstall --context mimetypes --mode system --size $${size} application-gnuradio-grc; \
38                 xdg-icon-resource uninstall --context apps --mode system --size $${size} gnuradio-grc; \
39         done
40         xdg-mime uninstall --mode system $(srcdir)/gnuradio-grc.xml
41         xdg-desktop-menu uninstall --mode system $(srcdir)/gnuradio-grc.desktop
42         xdg-desktop-menu uninstall --mode system $(srcdir)/gnuradio-usrp_diagnostics.desktop
43
44 EXTRA_DIST = \
45         $(srcdir)/grc-icon-256.png \
46         $(srcdir)/grc-icon-128.png \
47         $(srcdir)/grc-icon-64.png \
48         $(srcdir)/grc-icon-48.png \
49         $(srcdir)/grc-icon-32.png \
50         $(srcdir)/gnuradio-grc.xml \
51         $(srcdir)/gnuradio-grc.desktop \
52         $(srcdir)/gnuradio-usrp_diagnostics.desktop