summaryrefslogtreecommitdiff
path: root/gsearchtool/Makefile.am
blob: 77c66581929590476fb5393d3028c78826f1f35a (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
Utilitiesdir = $(datadir)/applications

SUBDIRS = data help libmateui-deprecated

INCLUDES = \
	$(MATE_UTILS_CFLAGS) \
	$(GIO_UNIX_CFLAGS) \
	-I$(srcdir)/libmateui-deprecated \
	-I$(top_srcdir)/libeggsmclient \
	-DG_DISABLE_DEPRECATED \
	-DMATELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
	-DLOCALEDIR=\"$(datadir)/locale\" \
	-DDATADIR=\""$(datadir)"\" \
	-DGREP_COMMAND=\""$(GREP_COMMAND)"\"

libmateui_deprecated_LIB = $(builddir)/libmateui-deprecated/libmateui-deprecated.la
libeggsmclient_LIB = $(top_builddir)/libeggsmclient/libeggsmclient.la

bin_PROGRAMS = mate-search-tool

schemadir = $(MATECONF_SCHEMA_FILE_DIR)
schema_in_file = mate-search-tool.schemas.in
schema_DATA = $(schema_in_file:.schemas.in=.schemas)
@INTLTOOL_SCHEMAS_RULE@

mate_search_tool_SOURCES = \
	gsearchtool-support.c \
	gsearchtool-support.h \
	gsearchtool-callbacks.c \
	gsearchtool-callbacks.h \
	gsearchtool.c \
	gsearchtool.h

mate_search_tool_LDADD = \
	$(MATE_UTILS_LIBS) \
	$(GIO_UNIX_LIBS)  \
	$(libmateui_deprecated_LIB) \
	$(libeggsmclient_LIB)

man_MANS = mate-search-tool.1

Utilities_in_files = mate-search-tool.desktop.in
Utilities_DATA = $(Utilities_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

EXTRA_DIST = \
	$(Utilities_in_files) \
	$(Utilities_DATA) \
	$(schema_in_file) \
	$(man_MANS)

if MATECONF_SCHEMAS_INSTALL
install-data-local:
	if test -z "$(DESTDIR)" ; then \
		MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) $(MATECONFTOOL) --makefile-install-rule $(top_builddir)/gsearchtool/$(schema_DATA) ; \
	fi
else
install-data-local:
endif

CLEANFILES = \
	mate-search-tool.desktop \
	$(schema_DATA)

disthook:
	cd $(distdir) ; rm -f $(CLEANFILES)