diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2012-08-01 15:48:53 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2012-08-01 15:48:53 +0200 |
commit | 9952331d5d58a4cc2580eddec34defa9cfe141c9 (patch) | |
tree | 91b24c0ec10bd07c363b418e29f1d2163ba81d60 | |
parent | 286f298bb79a43b61baab36582481df93e84137b (diff) | |
download | lvm2-9952331d5d58a4cc2580eddec34defa9cfe141c9.tar.gz lvm2-9952331d5d58a4cc2580eddec34defa9cfe141c9.tar.xz lvm2-9952331d5d58a4cc2580eddec34defa9cfe141c9.zip |
make: fix make in scripts dir for --disable-applib
-rw-r--r-- | scripts/Makefile.in | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/scripts/Makefile.in b/scripts/Makefile.in index 2298f0c7..df13c3d1 100644 --- a/scripts/Makefile.in +++ b/scripts/Makefile.in @@ -15,14 +15,18 @@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ -SOURCES = lvm2_activation_generator_systemd_red_hat.c -TARGETS = lvm2_activation_generator_systemd_red_hat +ifeq ("@APPLIB@", "yes") + SOURCES = lvm2_activation_generator_systemd_red_hat.c + TARGETS = lvm2_activation_generator_systemd_red_hat +endif include $(top_builddir)/make.tmpl -DEPLIBS += $(top_builddir)/liblvm/liblvm2app.so $(top_builddir)/libdm/libdevmapper.so -LDFLAGS += -L$(top_builddir)/liblvm -LVMLIBS = @LVM2APP_LIB@ -ldevmapper +ifeq ("@APPLIB@", "yes") + DEPLIBS += $(top_builddir)/liblvm/liblvm2app.so $(top_builddir)/libdm/libdevmapper.so + LDFLAGS += -L$(top_builddir)/liblvm + LVMLIBS = @LVM2APP_LIB@ -ldevmapper +endif ifeq ("@DMEVENTD@", "yes") LVMLIBS += -ldevmapper-event @@ -76,7 +80,12 @@ lvm2_activation_generator_systemd_red_hat: $(OBJECTS) $(DEPLIBS) install_systemd_generators: $(INSTALL_DIR) $(systemd_generator_dir) +ifeq ("@APPLIB@", "yes") $(INSTALL_PROGRAM) lvm2_activation_generator_systemd_red_hat $(systemd_generator_dir)/lvm2-activation-generator +else + @echo "WARNING: LVM2 activation systemd generator not installed." \ + "It requires the LVM2 application library to be built as well." +endif install_systemd_units: $(INSTALL_DIR) $(systemd_unit_dir) |