~ubuntu-branches/debian/sid/lvm2/sid

« back to all changes in this revision

Viewing changes to scripts/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2013-03-03 12:33:47 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20130303123347-smfwei6dodkdth55
Tags: 2.02.98-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
top_srcdir = @top_srcdir@
16
16
top_builddir = @top_builddir@
17
17
 
 
18
ifeq ("@APPLIB@", "yes")
 
19
        SOURCES = lvm2_activation_generator_systemd_red_hat.c
 
20
        TARGETS = lvm2_activation_generator_systemd_red_hat
 
21
endif
 
22
 
18
23
include $(top_builddir)/make.tmpl
19
24
 
 
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
 
29
endif
 
30
 
 
31
ifeq ("@DMEVENTD@", "yes")
 
32
        LVMLIBS += -ldevmapper-event
 
33
endif
 
34
 
20
35
SCRIPTS = lvmdump.sh lvmconf.sh vgimportclone.sh
 
36
 
21
37
ifeq ("@FSADM@", "yes")
22
38
        SCRIPTS += fsadm.sh
23
39
endif
24
40
 
 
41
ifeq ("@BLKDEACTIVATE@", "yes")
 
42
        SCRIPTS += blkdeactivate.sh
 
43
endif
 
44
 
25
45
OCF_SCRIPTS =
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
60
80
endif
 
81
ifeq ("@BLKDEACTIVATE@", "yes")
 
82
        $(INSTALL_SCRIPT) blk_availability_init_red_hat $(initdir)/blk-availability
 
83
endif
 
84
 
 
85
lvm2_activation_generator_systemd_red_hat: $(OBJECTS) $(DEPLIBS)
 
86
        $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LVMLIBS)
 
87
 
 
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
 
92
else
 
93
        @echo "WARNING: LVM2 activation systemd generator not installed." \
 
94
              "It requires the LVM2 application library to be built as well."
 
95
endif
61
96
 
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
 
103
endif
 
104
ifeq ("@BLKDEACTIVATE@", "yes")
 
105
        $(INSTALL_DATA) blk_availability_systemd_red_hat.service $(systemd_unit_dir)/blk-availability.service
68
106
endif
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
72
110
endif
73
111
 
74
112
install_tmpfiles_configuration:
75
113
        $(INSTALL_DIR) $(tmpfiles_dir)
76
114
        $(INSTALL_DATA) lvm2_tmpfiles_red_hat.conf $(tmpfiles_dir)/lvm2.conf
77
115
 
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