12 EXTRA_DIST = config.rpath
14 noinst_DATA = gliv.desktop gliv.png gliv.svg
15 CLEANFILES = gliv.desktop
17 gliv.desktop: gliv.desktop.tmpl
18 sed -e 's|@SHAREDIR@|$(datadir)|g' -e 's|@BINDIR@|$(bindir)|g' < $< > $@
22 @echo "+----------------------------------------------------------+"
24 @echo "| Note to Zsh users |"
26 @echo "| If you use Zsh's completion mechanism, you can install |"
27 @echo '| tools/_gliv in $$ZSH_PREFIX/share/zsh/site-functions/ |'
28 @echo "| to have Zsh's completion on GLiv's parameters. |"
30 @echo "+----------------------------------------------------------+"
32 @if desktop-file-install --help > /dev/null 2>&1; then \
33 echo "Installing the GLiv desktop file with desktop-file-install"; \
34 mkdir -p $(datadir)/{pixmaps,applications} || true; \
35 cp gliv.png $(datadir)/pixmaps/gliv.png || true; \
36 desktop-file-install --vendor=gnome --dir=$(datadir)/applications \
37 gliv.desktop || true; \
39 echo "No desktop-file-install(1), skipping gliv.desktop"; \
43 rm $(datadir)/pixmaps/gliv.png || true
44 rm $(datadir)/applications/gnome-gliv.desktop || true