blob: 4c6fdfeb4226bf3d7d3ea180e3e896b257d2f0bf (
plain)
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
72
73
74
75
76
77
|
# docs/Makefile.am distributes the tvtime documentation.
# Copyright (C) 2002, 2003 Billy Biggs
#
# 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.
SUBDIRS = man
pkgsysconfdir = $(sysconfdir)/@PACKAGE@
docs_html = html/default.tvtime.xml html/help.html html/index.html \
html/lirc.html html/little-screenshot.jpg html/problems.html \
html/screenshot-small.jpg html/toshiba-16x9-screenshot.jpg \
html/tvtime-logo-banner.png html/tvtime.css html/usage.html \
html/wsshot-small.jpg html/xmltv.html html/xmltvshot.jpg \
html/remote-small.jpg html/remote-nomenu-small.jpg \
html/example.lircrc
EXTRA_DIST = $(docs_html) tvtime.16x16.png \
tvtime.32x32.png tvtime.48x48.png tvtime.32x32.xpm
# We use $(datadir)/applications from the freedesktop spec
# http://www.freedesktop.org/standards/desktop-entry-spec/
desktopdatadir = $(datadir)/applications
dist_desktopdata_DATA = tvtime.desktop
# We use $(datadir)/icons/hicolor as our theme from the freedesktop spec
# http://www.freedesktop.org/standards/menu-spec/
install-data-local:
$(INSTALL) -d '$(DESTDIR)$(datadir)/icons/hicolor/16x16/apps'
$(INSTALL) -d '$(DESTDIR)$(datadir)/icons/hicolor/32x32/apps'
$(INSTALL) -d '$(DESTDIR)$(datadir)/icons/hicolor/48x48/apps'
$(INSTALL) -d '$(DESTDIR)$(datadir)/pixmaps'
$(INSTALL_DATA) '$(srcdir)/tvtime.16x16.png' '$(DESTDIR)$(datadir)/icons/hicolor/16x16/apps/tvtime.png'
$(INSTALL_DATA) '$(srcdir)/tvtime.32x32.png' '$(DESTDIR)$(datadir)/icons/hicolor/32x32/apps/tvtime.png'
$(INSTALL_DATA) '$(srcdir)/tvtime.48x48.png' '$(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/tvtime.png'
$(INSTALL_DATA) '$(srcdir)/tvtime.32x32.xpm' '$(DESTDIR)$(datadir)/pixmaps/tvtime.xpm'
$(INSTALL_DATA) '$(srcdir)/tvtime.48x48.png' '$(DESTDIR)$(datadir)/pixmaps/tvtime.png'
.PHONY: install-exec-hook
install-exec-hook:
-mkdir -p -- '$(DESTDIR)$(pkgsysconfdir)' || touch noconfdir
@if [ -f noconfdir ]; then ( \
echo 'Warning: I could not create the directory' \
'`$(DESTDIR)$(pkgsysconfdir)'"'" ;\
echo ' because you do not have the required permissions.' ;\
); fi
-if [ -f noconfdir ]; then \
rm -f noconfdir; \
else \
$(INSTALL) -m 'u=rw,go=r' 'html/default.tvtime.xml' \
'$(DESTDIR)$(pkgsysconfdir)/tvtime.xml' || touch noconfdir; \
fi
@if [ -f noconfdir ]; then rm -f noconfdir; ( \
echo 'Warning: I could not create the default tvtime' \
'configuration file' ;\
echo ' because you do not have the required permissions.' ;\
); fi
uninstall-hook:
-rmdir -p '$(DESTDIR)$(pkgsysconfdir)'
-rm -f '$(DESTDIR)$(datadir)/icons/hicolor/16x16/apps/tvtime.png'
-rm -f '$(DESTDIR)$(datadir)/icons/hicolor/32x32/apps/tvtime.png'
-rm -f '$(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/tvtime.png'
-rm -f '$(DESTDIR)$(datadir)/pixmaps/tvtime.xpm'
-rm -f '$(DESTDIR)$(datadir)/pixmaps/tvtime.png'
|