1
# docs/Makefile.am distributes the tvtime documentation.
2
# Copyright (C) 2002, 2003 Billy Biggs
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; either version 2 of the License, or (at
7
# your option) any later version.
9
# This program is distributed in the hope that it will be useful, but
10
# WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
# General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
pkgsysconfdir = $(sysconfdir)/@PACKAGE@
20
man_MANS = tvtime.1 tvtime-command.1 tvtime.xml.5 stationlist.xml.5 \
21
tvtime-configure.1 tvtime-scanner.1
22
docs_html = html/default.tvtime.xml html/help.html html/index.html \
23
html/lirc.html html/little-screenshot.jpg html/problems.html \
24
html/screenshot-small.jpg html/toshiba-16x9-screenshot.jpg \
25
html/tvtime-logo-banner.png html/tvtime.css html/usage.html \
26
html/wsshot-small.jpg html/xmltv.html html/xmltvshot.jpg \
27
html/remote-small.jpg html/remote-nomenu-small.jpg \
30
EXTRA_DIST = $(man_MANS) $(docs_html) tvtime.16x16.png \
31
tvtime.32x32.png tvtime.48x48.png tvtime.32x32.xpm
33
# We use $(datadir)/applications from the freedesktop spec
34
# http://www.freedesktop.org/standards/desktop-entry-spec/
35
desktopdatadir = $(datadir)/applications
36
dist_desktopdata_DATA = net-tvtime.desktop
38
# We use $(datadir)/icons/hicolor as our theme from the freedesktop spec
39
# http://www.freedesktop.org/standards/menu-spec/
41
$(INSTALL) -d '$(DESTDIR)$(datadir)/icons/hicolor/16x16/apps'
42
$(INSTALL) -d '$(DESTDIR)$(datadir)/icons/hicolor/32x32/apps'
43
$(INSTALL) -d '$(DESTDIR)$(datadir)/icons/hicolor/48x48/apps'
44
$(INSTALL) -d '$(DESTDIR)$(datadir)/pixmaps'
45
$(INSTALL_DATA) '$(srcdir)/tvtime.16x16.png' '$(DESTDIR)$(datadir)/icons/hicolor/16x16/apps/tvtime.png'
46
$(INSTALL_DATA) '$(srcdir)/tvtime.32x32.png' '$(DESTDIR)$(datadir)/icons/hicolor/32x32/apps/tvtime.png'
47
$(INSTALL_DATA) '$(srcdir)/tvtime.48x48.png' '$(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/tvtime.png'
48
$(INSTALL_DATA) '$(srcdir)/tvtime.32x32.xpm' '$(DESTDIR)$(datadir)/pixmaps/tvtime.xpm'
49
$(INSTALL_DATA) '$(srcdir)/tvtime.48x48.png' '$(DESTDIR)$(datadir)/pixmaps/tvtime.png'
51
.PHONY: install-exec-hook
53
-mkdir -p -- '$(DESTDIR)$(pkgsysconfdir)' || touch noconfdir
54
@if [ -f noconfdir ]; then ( \
55
echo 'Warning: I could not create the directory' \
56
'`$(DESTDIR)$(pkgsysconfdir)'"'" ;\
57
echo ' because you do not have the required permissions.' ;\
59
-if [ -f noconfdir ]; then \
62
$(INSTALL) -m 'u=rw,go=r' 'html/default.tvtime.xml' \
63
'$(DESTDIR)$(pkgsysconfdir)/tvtime.xml' || touch noconfdir; \
65
@if [ -f noconfdir ]; then rm -f noconfdir; ( \
66
echo 'Warning: I could not create the default tvtime' \
67
'configuration file' ;\
68
echo ' because you do not have the required permissions.' ;\
72
-rmdir -p '$(DESTDIR)$(pkgsysconfdir)'
73
-rm -f '$(DESTDIR)$(datadir)/icons/hicolor/16x16/apps/tvtime.png'
74
-rm -f '$(DESTDIR)$(datadir)/icons/hicolor/32x32/apps/tvtime.png'
75
-rm -f '$(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/tvtime.png'
76
-rm -f '$(DESTDIR)$(datadir)/pixmaps/tvtime.xpm'
77
-rm -f '$(DESTDIR)$(datadir)/pixmaps/tvtime.png'