Makefile.am 4.54 KB
Newer Older
1
include $(top_srcdir)/Makefile.shared
2

Elliot Lee's avatar
Elliot Lee committed
3 4
SUBDIRS=file-manager

Elliot Lee's avatar
Elliot Lee committed
5 6
bin_PROGRAMS=nautilus

7
INCLUDES =\
8
	-I$(top_srcdir) \
Darin Adler's avatar
Darin Adler committed
9 10
	-I$(top_srcdir)/cut-n-paste-code/widgets/e-paned \
	-I$(top_srcdir)/cut-n-paste-code/widgets/gimphwrapbox \
11
	$(NAUTILUS_SRC_CFLAGS) \
12
	-DVERSION="\"$(VERSION)\"" \
13
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
Darin Adler's avatar
Darin Adler committed
14
	-DNAUTILUS_DATADIR=\""$(datadir)/nautilus"\" \
15
	-DNAUTILUS_PIXMAPDIR=\""$(datadir)/pixmaps/nautilus"\" \
Darin Adler's avatar
Darin Adler committed
16
	-DDATADIR=\""$(datadir)"\" \
17
	$(NULL)
Elliot Lee's avatar
Elliot Lee committed
18

19
LDADD =\
20
	$(top_builddir)/src/file-manager/libnautilus-file-manager.la \
21
	$(top_builddir)/libnautilus/libnautilus.la \
Maciej Stachowiak's avatar
Maciej Stachowiak committed
22
	$(top_builddir)/libnautilus-adapter/libnautilus-adapter.la \
23
	$(top_builddir)/libnautilus-private/libnautilus-private.la  \
24
	$(NAUTILUS_SRC_LIBS) \
25
	$(NULL)
Elliot Lee's avatar
Elliot Lee committed
26

27 28 29 30 31 32
nautilus_shell_interface_idl_sources =		\
	nautilus-shell-interface-stubs.c	\
	nautilus-shell-interface-skels.c	\
	nautilus-shell-interface.h		\
	nautilus-shell-interface-common.c

33 34 35 36 37
if ENABLE_PROFILER
profiler_headers = nautilus-profiler.h
profiler_sources = nautilus-profiler.c
endif

38 39
nautilus_SOURCES = \
	$(nautilus_shell_interface_idl_sources)	\
40
	nautilus-about.c			\
41 42
	nautilus-applicable-views.c		\
	nautilus-application.c			\
43
	nautilus-bookmark-list.c		\
44
	nautilus-bookmark-parsing.c		\
45
	nautilus-bookmarks-window.c		\
46
	nautilus-complex-search-bar.c		\
Maciej Stachowiak's avatar
Maciej Stachowiak committed
47
	nautilus-component-adapter-factory.c	\
48
	nautilus-desktop-window.c		\
49
	nautilus-first-time-druid.c		\
50
	nautilus-link-set-window.c		\
51
	nautilus-location-bar.c         	\
52
	nautilus-main.c 			\
53
	nautilus-navigation-bar.c         	\
54
	nautilus-preferences-dialog.c		\
55
	nautilus-property-browser.c     	\
56
	nautilus-search-bar-criterion.c		\
57
	nautilus-search-bar.c			\
58
	nautilus-self-check-functions.c 	\
59
	nautilus-shell.c			\
60 61
	nautilus-sidebar-tabs.c			\
	nautilus-sidebar-title.c		\
62 63 64
	nautilus-sidebar.c			\
	nautilus-signaller.c			\
	nautilus-simple-search-bar.c		\
65
	nautilus-switchable-navigation-bar.c	\
66
	nautilus-switchable-search-bar.c	\
67
	nautilus-theme-selector.c		\
68 69 70
	nautilus-view-frame-corba.c		\
	nautilus-view-frame.c			\
	nautilus-window-manage-views.c		\
71 72
	nautilus-window-menus.c         	\
	nautilus-window-toolbars.c      	\
73
	nautilus-window.c			\
74
	nautilus-zoom-control.c			\
75
	$(profiler_sources)			\
Darin Adler's avatar
Darin Adler committed
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
	nautilus-about.h			\
	nautilus-applicable-views.h		\
	nautilus-application.h			\
	nautilus-bookmark-list.h		\
	nautilus-bookmark-parsing.h		\
	nautilus-bookmarks-window.h		\
	nautilus-complex-search-bar.h		\
	nautilus-component-adapter-factory.h	\
	nautilus-desktop-window.h		\
	nautilus-first-time-druid.h		\
	nautilus-link-set-window.h		\
	nautilus-location-bar.h			\
	nautilus-main.h				\
	nautilus-navigation-bar.h		\
	nautilus-preferences-dialog.h \
	nautilus-property-browser.h		\
	nautilus-search-bar-criterion-private.h	\
	nautilus-search-bar-criterion.h		\
	nautilus-search-bar-private.h		\
	nautilus-search-bar.h			\
	nautilus-self-check-functions.h 	\
	nautilus-shell.h			\
	nautilus-sidebar-tabs.h			\
	nautilus-sidebar-title.h		\
	nautilus-sidebar.h			\
	nautilus-signaller.h			\
	nautilus-simple-search-bar.h		\
	nautilus-switchable-navigation-bar.h	\
	nautilus-switchable-search-bar.h	\
	nautilus-theme-selector.h		\
	nautilus-view-frame-private.h		\
	nautilus-view-frame.h			\
	nautilus-window-manage-views.h		\
	nautilus-window-private.h		\
	nautilus-window.h			\
	nautilus-zoom-control.h			\
	$(profiler_headers)			\
113
	$(NULL)
114

115
$(nautilus_shell_interface_idl_sources): nautilus_shell_interface_idl_stamp
116 117
nautilus_shell_interface_idl_stamp: nautilus-shell-interface.idl $(ORBIT_IDL) $(top_srcdir)/libnautilus/nautilus-view-component.idl
	$(ORBIT_IDL) $(NAUTILUS_SRC_IDL_INCLUDES) -I$(top_srcdir) $<
118
	touch $@
119

120 121
$(nautilus_OBJECTS): nautilus_shell_interface_idl_stamp

122
TESTS=check-nautilus
123

124 125 126
serverdir = $(datadir)/server
server_in_files = Nautilus_shell.server.in
server_DATA = $(server_in_files:.server.in=.server)
127

128
@INTLTOOL_SERVER_RULE@
129 130

uidir = $(datadir)/gnome/ui
131 132 133
ui_DATA = 					\
	nautilus-shell-ui.xml			\
	$(NULL)
134

135 136 137 138 139
CLEANFILES = \
	$(nautilus_shell_interface_idl_sources)	\
	nautilus_shell_interface_idl_stamp	\
	$(NULL)

140
EXTRA_DIST =					\
141 142
	$(server_in_files)				\
	$(server_DATA)				\
143
	$(ui_DATA)				\
144 145 146
	check-nautilus				\
	nautilus-shell-interface.idl		\
	run-nautilus				\
147
	$(NULL)
148

149 150 151
BUILT_SOURCES = \
	$(nautilus_shell_interface_idl_sources) \
	$(NULL)
152

153
install-data-hook: run-nautilus
154
	$(mkinstalldirs) $(DESTDIR)/$(prefix)/bin
155
	@list='run-nautilus'; for p in $$list; do\
156
	  if test -f $$p; then \
157
	    echo "  $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p"; \
158
	    $(INSTALL_PROGRAM) $$p $(DESTDIR)/$(prefix)/bin/$$p; \
159 160
	  else :; fi; \
	done
161 162 163

dist-hook:
	cd $(distdir); rm -f $(CLEANFILES)