Only install *.desktop file if GTK_MODULE_DIR is used for relocating
[platform/core/uifw/at-spi2-atk.git] / atk-adaptor / Makefile.am
1 gtkmoduledir = $(libdir)/$(GTK_MODULE_DIR)
2 gtkmodule_LTLIBRARIES = libatk-bridge.la
3
4 libatk_bridge_la_CFLAGS = $(DBUS_GLIB_CFLAGS) \
5                           $(ATK_CFLAGS)       \
6                           $(DBIND_CFLAGS)     \
7                           $(DROUTE_CFLAGS)    \
8                           -I$(top_srcdir)     \
9                           -DATSPI_INTROSPECTION_PATH=\"$(pkgdatadir)/$(DEFAULT_ATSPI_INTROSPECTION_PATH)\"
10
11 libatk_bridge_la_LDFLAGS = -no-undefined  \
12                            -module        \
13                            -avoid-version \
14                            -rpath $(gtkmoduledir)
15
16 libatk_bridge_la_LIBADD = $(DBUS_GLIB_LIBS) \
17                           $(ATK_LIBS)       \
18                           $(DBIND_LIBS)     \
19                           $(DROUTE_LIBS)    \
20                           $(top_builddir)/common/libspicommon.la
21
22 libatk_bridge_la_SOURCES =      \
23         accessible-adaptor.c    \
24         accessible-marshaller.c \
25         accessible-marshaller.h \
26         accessible-register.c   \
27         accessible-register.h   \
28         action-adaptor.c        \
29         adaptors.h              \
30         application-adaptor.c   \
31         bridge.c                \
32         bridge.h                \
33         collection-adaptor.c    \
34         component-adaptor.c     \
35         document-adaptor.c      \
36         editabletext-adaptor.c  \
37         event.c                 \
38         event.h                 \
39         hyperlink-adaptor.c     \
40         hypertext-adaptor.c     \
41         image-adaptor.c         \
42         selection-adaptor.c     \
43         table-adaptor.c         \
44         text-adaptor.c          \
45         tree-adaptor.c          \
46         tree-adaptor.h          \
47         value-adaptor.c
48
49 if RELOCATE
50 gtkpathdir = $(gtkmoduledir)/..
51 gnomeautostartdir = $(datadir)/gnome/autostart
52 gnomeautostart_DATA = atk-bridge.desktop
53 EXTRA_DIST = atk-bridge.desktop.in
54 CLEANFILES = $(gnome_autostart_DATA)
55
56 %.desktop: %.desktop.in Makefile.am
57         sed -e "s,\@gtkpathdir\@,$(gtkpathdir)," \
58         < $< > $@
59 endif