15
15
top_srcdir = @top_srcdir@
16
16
top_builddir = @top_builddir@
18
ifeq ("@APPLIB@", "yes")
19
SOURCES = lvm2_activation_generator_systemd_red_hat.c
20
TARGETS = lvm2_activation_generator_systemd_red_hat
18
23
include $(top_builddir)/make.tmpl
25
ifeq ("@APPLIB@", "yes")
26
DEPLIBS += $(top_builddir)/liblvm/liblvm2app.so $(top_builddir)/libdm/libdevmapper.so
27
LDFLAGS += -L$(top_builddir)/liblvm
28
LVMLIBS = @LVM2APP_LIB@ -ldevmapper
31
ifeq ("@DMEVENTD@", "yes")
32
LVMLIBS += -ldevmapper-event
20
35
SCRIPTS = lvmdump.sh lvmconf.sh vgimportclone.sh
21
37
ifeq ("@FSADM@", "yes")
22
38
SCRIPTS += fsadm.sh
41
ifeq ("@BLKDEACTIVATE@", "yes")
42
SCRIPTS += blkdeactivate.sh
26
46
ifeq ("@OCF@", "yes")
27
47
OCF_SCRIPTS += VolumeGroup.ocf
58
78
ifeq ("@BUILD_CMIRRORD@", "yes")
59
79
$(INSTALL_SCRIPT) cmirrord_init_red_hat $(initdir)/cmirrord
81
ifeq ("@BLKDEACTIVATE@", "yes")
82
$(INSTALL_SCRIPT) blk_availability_init_red_hat $(initdir)/blk-availability
85
lvm2_activation_generator_systemd_red_hat: $(OBJECTS) $(DEPLIBS)
86
$(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LVMLIBS)
88
install_systemd_generators:
89
$(INSTALL_DIR) $(systemd_generator_dir)
90
ifeq ("@APPLIB@", "yes")
91
$(INSTALL_PROGRAM) lvm2_activation_generator_systemd_red_hat $(systemd_generator_dir)/lvm2-activation-generator
93
@echo "WARNING: LVM2 activation systemd generator not installed." \
94
"It requires the LVM2 application library to be built as well."
62
97
install_systemd_units:
63
$(INSTALL_DIR) $(systemd_dir)
98
$(INSTALL_DIR) $(systemd_unit_dir)
64
99
ifeq ("@BUILD_DMEVENTD@", "yes")
65
$(INSTALL_DATA) dm_event_systemd_red_hat.socket $(systemd_dir)/dm-event.socket
66
$(INSTALL_DATA) dm_event_systemd_red_hat.service $(systemd_dir)/dm-event.service
67
$(INSTALL_DATA) lvm2_monitoring_systemd_red_hat.service $(systemd_dir)/lvm2-monitor.service
100
$(INSTALL_DATA) dm_event_systemd_red_hat.socket $(systemd_unit_dir)/dm-event.socket
101
$(INSTALL_DATA) dm_event_systemd_red_hat.service $(systemd_unit_dir)/dm-event.service
102
$(INSTALL_DATA) lvm2_monitoring_systemd_red_hat.service $(systemd_unit_dir)/lvm2-monitor.service
104
ifeq ("@BLKDEACTIVATE@", "yes")
105
$(INSTALL_DATA) blk_availability_systemd_red_hat.service $(systemd_unit_dir)/blk-availability.service
69
107
ifeq ("@BUILD_LVMETAD@", "yes")
70
$(INSTALL_DATA) lvm2_lvmetad_systemd_red_hat.socket $(systemd_dir)/lvm2-lvmetad.socket
71
$(INSTALL_DATA) lvm2_lvmetad_systemd_red_hat.service $(systemd_dir)/lvm2-lvmetad.service
108
$(INSTALL_DATA) lvm2_lvmetad_systemd_red_hat.socket $(systemd_unit_dir)/lvm2-lvmetad.socket
109
$(INSTALL_DATA) lvm2_lvmetad_systemd_red_hat.service $(systemd_unit_dir)/lvm2-lvmetad.service
74
112
install_tmpfiles_configuration:
75
113
$(INSTALL_DIR) $(tmpfiles_dir)
76
114
$(INSTALL_DATA) lvm2_tmpfiles_red_hat.conf $(tmpfiles_dir)/lvm2.conf
78
DISTCLEAN_TARGETS += clvmd_init_red_hat cmirrord_init_red_hat lvm2_monitoring_init_red_hat \
79
dm_event_systemd_red_hat.service lvm2_monitoring_systemd_red_hat.service \
116
DISTCLEAN_TARGETS += clvmd_init_red_hat cmirrord_init_red_hat \
117
lvm2_monitoring_init_red_hat lvm2_lvmetad_init_red_hat \
118
dm_event_systemd_red_hat.socket dm_event_systemd_red_hat.service \
119
lvm2_monitoring_systemd_red_hat.service \
80
120
lvm2_lvmetad_systemd_red_hat.socket lvm2_lvmetad_systemd_red_hat.service \
81
lvm2_lvmetad_init_red_hat lvm2_tmpfiles_red_hat.conf
121
lvm2_tmpfiles_red_hat.conf