File: Makefile.am

package info (click to toggle)
ganyremote 5.13-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,496 kB
  • sloc: sh: 3,898; python: 3,357; makefile: 56; sed: 16
file content (71 lines) | stat: -rw-r--r-- 3,155 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# 
# 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