summaryrefslogtreecommitdiff
path: root/gstreamer-properties/Makefile.am
blob: 3f0dbbdc9b9aa3b867d8a142dccf61ee130484a3 (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
SUBDIRS = . help
bin_PROGRAMS = mate-gstreamer-properties

mate_gstreamer_properties_LDADD = $(GSTPROPS_LIBS)
mate_gstreamer_properties_SOURCES = \
	gstreamer-properties.c gstreamer-properties-structs.h \
	pipeline-tests.h pipeline-tests.c \
	pipeline-constants.c

@INTLTOOL_DESKTOP_RULE@

iconsdir   = $(datadir)/mate-gstreamer-properties/icons
icons_DATA = gstreamer-properties.png

desktop_iconsdir = $(datadir)/icons/mate/48x48/apps
desktop_icons_DATA = gstreamer-properties.png

uidir   = $(datadir)/mate-gstreamer-properties/
ui_DATA = gstreamer-properties.ui

desktopdir = $(datadir)/applications
Desktop_in_files = mate-gstreamer-properties.desktop.in.in
desktop_DATA = $(Desktop_in_files:.desktop.in.in=.desktop)

AM_CPPFLAGS = \
	$(GSTPROPS_CFLAGS) \
	-DGSTPROPS_UIDIR=\""$(uidir)"\" \
	-DGSTPROPS_ICONDIR=\""$(iconsdir)"\" \
	-DDATADIR=\""$(datadir)"\" \
	-DMATELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
	-DG_LOG_DOMAIN="\"gstreamer-properties\"" \
	$(DISABLE_DEPRECATED)

CLEANFILES = $(GSTPROPS_CLEANFILES) $(desktop_DATA)
DISTCLEANFILES = $(Desktop_in_files:.desktop.in.in=.desktop.in)
EXTRA_DIST = $(icons_DATA) $(ui_DATA) $(Desktop_in_files)

gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
install-data-hook:
	@-if test -z "$(DESTDIR)"; then \
		echo "Updating Gtk icon cache."; \
		$(gtk_update_icon_cache); \
	else \
		echo "*** Icon cache not updated.  After install, run this:"; \
		echo "***   $(gtk_update_icon_cache)"; \
	fi

-include $(top_srcdir)/git.mk