Makefile.am 3.19 KB
Newer Older
1
SUBDIRS = icons
2

3
bugreportdir = $(libexecdir)/totem
4
bugreport_SCRIPTS = totem-bugreport.py
5

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

8
stuffdir = $(pkgdatadir)
9
stuff_DATA =				\
10
	filmholes.png			\
11 12
	filmholes-big-left.png		\
	filmholes-big-right.png		\
13
	totem_logo.png			\
14 15 16 17 18 19 20
	totem.ui			\
	fullscreen.ui			\
	playlist.ui			\
	plugins.ui			\
	mozilla-viewer.ui		\
	properties.ui			\
	uri.ui				\
21
	video-list.ui
22 23 24

gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor

25 26 27
install-data-hook: update-icon-cache
uninstall-hook: update-icon-cache
update-icon-cache:
28 29 30 31
	@-if test -z "$(DESTDIR)"; then \
		echo "Updating Gtk icon cache."; \
		$(gtk_update_icon_cache); \
	else \
32
		echo "*** Icon cache not updated.  After (un)install, run this:"; \
33 34
		echo "***   $(gtk_update_icon_cache)"; \
	fi
35

36 37 38 39 40 41
# 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_files = totem.desktop.in
42
desktopdir = $(datadir)/applications
43 44 45
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

46
totem.desktop.in: totem.desktop.in.in mime-type-list.txt desktop.sh
47
	cat totem.desktop.in.in | sed 's,@FULL_LIBEXECDIR@,$(FULL_LIBEXECDIR),' > $@ &&\
48
	$(SHELL) $(srcdir)/desktop.sh $(srcdir)/mime-type-list.txt	\
49
	>> $@
50

51
nodist_noinst_HEADERS = totem-mime-types.h nautilus-audio-mime-types.h
52
totem-mime-types.h: mime-type-include.sh mime-type-list.txt mime-functions.sh
53
	$(srcdir)/mime-type-include.sh $(srcdir)/mime-type-list.txt	\
54
	> $@
55 56 57
nautilus-audio-mime-types.h: mime-type-include.sh mime-type-list.txt mime-functions.sh
	$(srcdir)/mime-type-include.sh --nautilus $(srcdir)/mime-type-list.txt	\
	> $@
58

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

61
totem-video-thumbnail.schemas.in: schemas.sh mime-type-list.txt mime-functions.sh
62
	$(srcdir)/schemas.sh $(srcdir)/mime-type-list.txt $(bindir)	\
63
	> $@								\
64
	3> update-gconf.sh
Bastien Nocera's avatar
Bastien Nocera committed
65

66
totem-handlers.schemas.in: handlers.sh
67
	$(srcdir)/handlers.sh > $@
68

69
generated_schema_in_files = totem-video-thumbnail.schemas.in totem-handlers.schemas.in
70
schema_in_files = totem.schemas.in $(generated_schema_in_files)
71
schemadir = $(GCONF_SCHEMA_FILE_DIR)
Bastien Nocera's avatar
Bastien Nocera committed
72 73 74
schema_DATA = $(schema_in_files:.schemas.in=.schemas)
@INTLTOOL_SCHEMAS_RULE@

75
totem-video-thumbnailer.1: totem-video-thumbnailer.pod
76
	pod2man -c "" -s 1 -q none -n totem-video-thumbnailer -r GNOME $< > $@
77

78
install-data-local: $(schema_DATA)
79
if GCONF_SCHEMAS_INSTALL
80 81
	if test -z "$(DESTDIR)" ; then \
	for p in $^ ; do \
82
		GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $$p 2>&1 > /dev/null; \
83 84
	done \
	fi
85
endif
Bastien Nocera's avatar
Bastien Nocera committed
86

87 88 89
EXTRA_DIST = \
	$(man_MANS)			\
	$(stuff_DATA)			\
90
	$(bugreport_SCRIPTS)		\
91 92 93 94 95
	desktop.sh			\
	handlers.sh			\
	mime-type-include.sh		\
	mime-type-list.txt		\
	schemas.sh			\
96
	mime-functions.sh		\
97 98 99 100 101
	totem.schemas.in		\
	totem-video-thumbnailer.1	\
	totem-video-thumbnailer.pod

CLEANFILES = \
102
	*.bak *.uip core* *.orig *~ 	\
103 104
	$(desktop_in_files)		\
	$(desktop_DATA)			\
105
	$(generated_schema_in_files)	\
106 107 108 109
	$(schema_DATA)			\
	totem-handlers.schemas.in 	\
	totem-mime-types.h		\
	totem-video-thumbnail.schemas.in\
Bastien Nocera's avatar
Bastien Nocera committed
110
	nautilus-audio-mime-types.h	\
111 112 113
	update-gconf.sh

DISTCLEANFILES =