diff options
author | jblum | 2008-09-30 19:43:04 +0000 |
---|---|---|
committer | jblum | 2008-09-30 19:43:04 +0000 |
commit | 39f5fa920c360e84f757162572fa4aa999aea4ef (patch) | |
tree | 08b7260e49179645277ce129323ccbb0a4b6c914 /grc | |
parent | e5c137e191f0f0f9817e03b9d54c11788432da50 (diff) | |
download | gnuradio-39f5fa920c360e84f757162572fa4aa999aea4ef.tar.gz gnuradio-39f5fa920c360e84f757162572fa4aa999aea4ef.tar.bz2 gnuradio-39f5fa920c360e84f757162572fa4aa999aea4ef.zip |
AC check for xdg utils
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9684 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc')
-rw-r--r-- | grc/Makefile.am | 3 | ||||
-rw-r--r-- | grc/freedesktop/Makefile.am | 38 |
2 files changed, 19 insertions, 22 deletions
diff --git a/grc/Makefile.am b/grc/Makefile.am index 104ff186b..8b77fc31a 100644 --- a/grc/Makefile.am +++ b/grc/Makefile.am @@ -21,9 +21,8 @@ include $(top_srcdir)/grc/Makefile.inc -SUBDIRS = \ +SUBDIRS = $(XDG_UTILS) \ data \ examples \ - freedesktop \ scripts \ src diff --git a/grc/freedesktop/Makefile.am b/grc/freedesktop/Makefile.am index dbbf94ce4..30073b951 100644 --- a/grc/freedesktop/Makefile.am +++ b/grc/freedesktop/Makefile.am @@ -24,28 +24,26 @@ include $(top_srcdir)/grc/Makefile.inc sizes = 32 48 64 128 256 install-data-local: - if test -s "`which xdg-mime`"; then \ - for size in $(sizes); do \ - xdg-icon-resource install --context mimetypes --theme gnome --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png application-gnuradio-grc; \ - xdg-icon-resource install --context mimetypes --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png application-gnuradio-grc; \ - xdg-icon-resource install --context apps --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png gnuradio-grc; \ - done; \ - xdg-mime install --mode system $(srcdir)/gnuradio-grc.xml; \ - xdg-desktop-menu install --mode system $(srcdir)/gnuradio-grc.desktop; \ - xdg-desktop-menu install --mode system $(srcdir)/gnuradio-usrp_diagnostics.desktop; \ - fi + for size in $(sizes); do \ + xdg-icon-resource install --context mimetypes --theme gnome --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png application-gnuradio-grc; \ + xdg-icon-resource install --context mimetypes --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png application-gnuradio-grc; \ + xdg-icon-resource install --context apps --theme gnome --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png gnuradio-grc; \ + xdg-icon-resource install --context apps --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png gnuradio-grc; \ + done + xdg-mime install --mode system $(srcdir)/gnuradio-grc.xml + xdg-desktop-menu install --mode system $(srcdir)/gnuradio-grc.desktop + xdg-desktop-menu install --mode system $(srcdir)/gnuradio-usrp_diagnostics.desktop uninstall-local: - if test -s "`which xdg-mime`"; then \ - for size in $(sizes); do \ - xdg-icon-resource uninstall --context mimetypes --theme gnome --mode system --size $${size} application-gnuradio-grc; \ - xdg-icon-resource uninstall --context mimetypes --mode system --size $${size} application-gnuradio-grc; \ - xdg-icon-resource uninstall --context apps --mode system --size $${size} gnuradio-grc; \ - done; \ - xdg-mime uninstall --mode system $(srcdir)/gnuradio-grc.xml; \ - xdg-desktop-menu uninstall --mode system $(srcdir)/gnuradio-grc.desktop; \ - xdg-desktop-menu uninstall --mode system $(srcdir)/gnuradio-usrp_diagnostics.desktop; \ - fi + for size in $(sizes); do \ + xdg-icon-resource uninstall --context mimetypes --theme gnome --mode system --size $${size} application-gnuradio-grc; \ + xdg-icon-resource uninstall --context mimetypes --mode system --size $${size} application-gnuradio-grc; \ + xdg-icon-resource uninstall --context apps --theme gnome --mode system --size $${size} gnuradio-grc; \ + xdg-icon-resource uninstall --context apps --mode system --size $${size} gnuradio-grc; \ + done + xdg-mime uninstall --mode system $(srcdir)/gnuradio-grc.xml + xdg-desktop-menu uninstall --mode system $(srcdir)/gnuradio-grc.desktop + xdg-desktop-menu uninstall --mode system $(srcdir)/gnuradio-usrp_diagnostics.desktop EXTRA_DIST = \ $(srcdir)/grc-icon-256.png \ |