summaryrefslogtreecommitdiff
path: root/data/Makefile.am
blob: a905facee624279092530ce0290ac160de02ca7c (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
78
79
80
81
82
83
84
85
86
87
88
89

man_MANS = totem.1 totem-video-thumbnailer.1

stuffdir = $(datadir)/totem/
stuff_DATA =				\
	filmholes.png			\
	filmholes-big-left.png		\
	filmholes-big-right.png		\
	media-player-48.png		\
	stock_media_next.png		\
	stock_media_previous.png	\
	stock_media_pause.png		\
	stock_media_play.png		\
	playlist-playing.png		\
	rhythmbox-volume-max.png	\
	rhythmbox-volume-zero.png	\
	stock-tool-brightness-contrast-22.png	\
	totem.glade			\
	playlist.glade			\
	mozilla-viewer.glade		\
	popup.glade			\
	properties.glade		\
	skip_to.glade			\
	uri.glade			\
	screenshot.glade		\
	totem_logo.png			\
	vanity.glade			\
	vanity.png

pixmapdir = $(datadir)/pixmaps
pixmap_DATA = media-player-48.png vanity.png

# totem.desktop.in.in.in = original
# totem.desktop.in.in = by configure, includes the X-Gnome-Bugzilla
# totem.desktop.in = includes the mime-types
# totem.desktop = intltool-ised

desktop_in_in_files_all = totem.desktop.in.in vanity.desktop.in.in
desktop_in_files_all = totem.desktop.in vanity.desktop.in
if TOTEM_VANITY
desktop_in_files = totem.desktop.in vanity.desktop.in
else
desktop_in_files = totem.desktop.in
endif

desktopdir = $(datadir)/applications
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

totem.desktop.in: totem.desktop.in.in mime-type-list.txt desktop.sh
	cat totem.desktop.in.in > totem.desktop.in &&\
	$(SHELL) $(srcdir)/desktop.sh $(srcdir)/mime-type-list.txt	\
	>> totem.desktop.in

noinst_HEADERS = totem-mime-types.h
totem-mime-types.h: mime-type-include.sh mime-type-list.txt
	$(srcdir)/mime-type-include.sh $(srcdir)/mime-type-list.txt	\
	> totem-mime-types.h

update-gconf.sh: totem-video-thumbnail.schemas.in

totem-video-thumbnail.schemas.in: schemas.sh mime-type-list.txt
	$(srcdir)/schemas.sh $(srcdir)/mime-type-list.txt $(bindir)	\
	> totem-video-thumbnail.schemas.in				\
	2> update-gconf.sh

totem-handlers.schemas.in: handlers.sh
	$(srcdir)/handlers.sh > totem-handlers.schemas.in

schema_in_files = totem.schemas.in totem-video-thumbnail.schemas.in totem-handlers.schemas.in
schemadir = $(GCONF_SCHEMA_FILE_DIR)
schema_DATA = $(schema_in_files:.schemas.in=.schemas)
@INTLTOOL_SCHEMAS_RULE@

totem-video-thumbnailer.1: totem-video-thumbnailer.pod
	pod2man -c "" -s 1 -q none -n totem-video-thumbnailer -r GNOME totem-video-thumbnailer.pod > totem-video-thumbnailer.1

if GCONF_SCHEMAS_INSTALL
install-data-local:
	-GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$(schema_DATA)
else
install-data-local:
endif

EXTRA_DIST = $(stuff_DATA) $(desktop_in_in_files_all) lirc_example totem.schemas.in schemas.sh desktop.sh handlers.sh $(man_MANS) mime-type-list.txt mime-type-include.sh totem-video-thumbnailer.1 totem-video-thumbnailer.pod

CLEANFILES = *.bak *.gladep core* *.orig *~ $(desktop_DATA) $(schema_DATA) $(desktop_in_files_all)

DISTCLEANFILES = totem-video-thumbnail.schemas.in totem-handlers.schemas.in update-gconf.sh