summaryrefslogtreecommitdiff
path: root/monitor/gdu/Makefile.am
blob: 4ba128ff947e07f3c128773f4441fe8b2c560ff9 (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
67
68
69
70

NULL =

libexec_PROGRAMS = gvfs-gdu-volume-monitor


gvfs_gdu_volume_monitor_SOURCES =			\
	gdu-volume-monitor-daemon.c			\
	ggdudrive.c		ggdudrive.h		\
	ggduvolume.c		ggduvolume.h		\
	ggdumount.c		ggdumount.h		\
	ggduvolumemonitor.c	ggduvolumemonitor.h	\
	$(NULL)

gvfs_gdu_volume_monitor_CFLAGS =		\
	-DG_LOG_DOMAIN=\"GVFS-Gdu\"		\
	-I$(top_srcdir)/common                  \
	-I$(top_srcdir)/monitor/proxy           \
	$(GLIB_CFLAGS)                          \
	$(GDU_CFLAGS)                           \
	$(GUDEV_CFLAGS)                         \
	-DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"	\
	-DGVFS_LOCALEDIR=\""$(localedir)"\"	\
	-DGDU_API_IS_SUBJECT_TO_CHANGE		\
	$(NULL)

gvfs_gdu_volume_monitor_LDFLAGS =	\
	$(NULL)

gvfs_gdu_volume_monitor_LDADD  =		     			      	\
	$(GLIB_LIBS)                                 			      	\
	$(GDU_LIBS)                                  			      	\
	$(GUDEV_LIBS)                                  			      	\
	$(top_builddir)/common/libgvfscommon.la 			      	\
	$(top_builddir)/common/libgvfscommon-monitor.la			      	\
	$(top_builddir)/monitor/proxy/libgvfsproxyvolumemonitordaemon-noin.la 	\
	$(NULL)

remote_volume_monitorsdir = $(datadir)/gvfs/remote-volume-monitors
remote_volume_monitors_DATA = gdu.monitor

servicedir       = $(datadir)/dbus-1/services
service_in_files = org.gtk.vfs.GduVolumeMonitor.service.in
service_DATA     = $(service_in_files:.service.in=.service)

systemd_user_in_files = gvfs-gdu-volume-monitor.service.in
if USE_SYSTEMD_USER_UNITS
systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
endif

$(service_DATA): $(service_in_files) Makefile
	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@

$(systemd_user_DATA): $(systemd_user_in_files) Makefile
	$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@

CLEANFILES = \
	*~ \
	*.loT \
	$(BUILT_SOURCES) \
	$(service_DATA) \
	$(systemd_user_DATA) \
	$(NULL)

EXTRA_DIST = \
	meson.build \
	$(service_in_files) \
	$(systemd_user_in_files) \
	$(remote_volume_monitors_DATA) \
	$(NULL)