#
# gAnyRemote - GTK frontend for anyRemote - a bluetooth remote for your PC.
#
# Copyright (C) 2007,2008,2009,2010 Mikhail Fedotov <anyremote@mail.ru>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
EXTRA_DIST = m4 config.guess config.rpath ABOUT-NLS \
NEWS README COPYING INSTALL AUTHORS TODO \
ChangeLog data ganyremote.desktop specs
dist_bin_SCRIPTS = ganyremote
SUBDIRS = po
ACLOCAL_AMFLAGS = -I m4
install-data-local:
test -z $(DESTDIR)$(datadir)/pixmaps || mkdir -p -- . $(DESTDIR)$(datadir)/pixmaps;chmod 755 $(DESTDIR)$(datadir)/pixmaps
test -z $(DESTDIR)$(datadir)/doc/ganyremote || mkdir -p -- . $(DESTDIR)$(datadir)/doc/ganyremote
cp -r ChangeLog README COPYING AUTHORS $(DESTDIR)$(datadir)/doc/ganyremote/
cp -r data/ganyremote_flash.png data/ganyremote_light.png data/ganyremote_off.png data/ganyremote.png $(DESTDIR)$(datadir)/pixmaps/
chmod 644 $(DESTDIR)$(datadir)/pixmaps/ganyremote_light.png $(DESTDIR)$(datadir)/pixmaps/ganyremote_off.png $(DESTDIR)$(datadir)/pixmaps/ganyremote_flash.png $(DESTDIR)$(datadir)/pixmaps/ganyremote.png
test -z $(DESTDIR)$(datadir)/applications || mkdir -p -- . $(DESTDIR)$(datadir)/applications;chmod 755 $(DESTDIR)$(datadir)/applications
cp ganyremote.desktop $(DESTDIR)$(datadir)/applications/ganyremote.desktop
chmod 644 $(DESTDIR)$(datadir)/applications/ganyremote.desktop
uninstall-local:
rm -rf $(DESTDIR)$(datadir)/pixmaps/ganyremote_light.png \
$(DESTDIR)$(datadir)/pixmaps/ganyremote_off.png \
$(DESTDIR)$(datadir)/pixmaps/ganyremote_flash.png \
$(DESTDIR)$(datadir)/pixmaps/ganyremote.png \
$(DESTDIR)$(datadir)/applications/ganyremote.desktop \
$(DESTDIR)$(datadir)/doc/ganyremote
pot:
xgettext --language=Python --keyword=_ --output=po/ganyremote.pot ganyremote
check-gettext:
@if test x$(USE_NLS) != "xyes" ; then echo "Missing gettext. Rerun configure and check for" \
"'checking whether to use NLS... yes'!" ; exit 1 ; fi
update-po: check-gettext
@echo ganyremote > $(srcdir)/po/POTFILES.in.2 ; \
if diff $(srcdir)/po/POTFILES.in $(srcdir)/po/POTFILES.in.2 >/dev/null 2>&1 ; then \
rm -f $(srcdir)/po/POTFILES.in.2 ; \
else \
mv $(srcdir)/po/POTFILES.in.2 $(srcdir)/po/POTFILES.in ; \
fi
cd po && $(MAKE) $(AM_MAKEFLAGS) update-po
update-gmo: check-gettext
cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
force-update-gmo: check-gettext
touch po/*.po
cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
.PHONY: check-gettext update-po update-gmo force-update-gmo