mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
makefiles: better logging
Show only filename instead of full path name when building in builddir != srcdir
This commit is contained in:
parent
456b659b4e
commit
39eee85fff
@ -82,7 +82,7 @@ CFLOW_SOURCES = $(addprefix $(srcdir)/, $(SOURCES))
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
install_include: $(srcdir)/libdevmapper-event.h
|
install_include: $(srcdir)/libdevmapper-event.h
|
||||||
@echo " [INSTALL] $<"
|
@echo " [INSTALL] $(<F)"
|
||||||
$(Q) $(INSTALL_DATA) -D $< $(includedir)/$(<F)
|
$(Q) $(INSTALL_DATA) -D $< $(includedir)/$(<F)
|
||||||
|
|
||||||
install_pkgconfig: libdevmapper-event.pc
|
install_pkgconfig: libdevmapper-event.pc
|
||||||
|
@ -56,7 +56,7 @@ lvmlockd: $(OBJECTS) $(top_builddir)/libdaemon/client/libdaemonclient.a \
|
|||||||
|
|
||||||
lvmlockctl: lvmlockctl.o $(top_builddir)/libdaemon/client/libdaemonclient.a
|
lvmlockctl: lvmlockctl.o $(top_builddir)/libdaemon/client/libdaemonclient.a
|
||||||
@echo " [CC] $@"
|
@echo " [CC] $@"
|
||||||
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ lvmlockctl.o $(INTERNAL_LIBS) $(LIBS)
|
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(INTERNAL_LIBS) $(LIBS)
|
||||||
|
|
||||||
install_lvmlockd: lvmlockd
|
install_lvmlockd: lvmlockd
|
||||||
@echo " [INSTALL] $<"
|
@echo " [INSTALL] $<"
|
||||||
|
@ -71,12 +71,12 @@ install_dmsetup_static: dmsetup.static
|
|||||||
$(Q) $(LN_S) -f $(<F) $(staticdir)/dmstats
|
$(Q) $(LN_S) -f $(<F) $(staticdir)/dmstats
|
||||||
|
|
||||||
|
|
||||||
dmfilemapd: $(LIB_SHARED) dmfilemapd.o
|
dmfilemapd: dmfilemapd.o $(LIB_SHARED)
|
||||||
@echo " [CC] $@"
|
@echo " [CC] $@"
|
||||||
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) \
|
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) \
|
||||||
-o $@ $+ $(DMLIBS)
|
-o $@ $+ $(DMLIBS)
|
||||||
|
|
||||||
dmfilemapd.static: $(LIB_STATIC) dmfilemapd.o
|
dmfilemapd.static: dmfilemapd.o $(LIB_STATIC)
|
||||||
@echo " [CC] $@"
|
@echo " [CC] $@"
|
||||||
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) -static \
|
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) -static \
|
||||||
-o $@ $+ $(DMLIBS) $(STATIC_LIBS)
|
-o $@ $+ $(DMLIBS) $(STATIC_LIBS)
|
||||||
|
@ -401,11 +401,11 @@ endif
|
|||||||
DEFS+=-D_FILE_OFFSET_BITS=64
|
DEFS+=-D_FILE_OFFSET_BITS=64
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
@echo " [CC] $<"
|
@echo " [CC] $(<F)"
|
||||||
$(Q) $(CC) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@
|
$(Q) $(CC) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
@echo " [CXX] $<"
|
@echo " [CXX] $(<F)"
|
||||||
$(Q) $(CXX) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(CXXFLAGS) $(CXXFLAGS_$@) $< -o $@
|
$(Q) $(CXX) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(CXXFLAGS) $(CXXFLAGS_$@) $< -o $@
|
||||||
|
|
||||||
%.pot: %.c Makefile
|
%.pot: %.c Makefile
|
||||||
@ -413,7 +413,7 @@ DEFS+=-D_FILE_OFFSET_BITS=64
|
|||||||
$(Q) $(CC) -E $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) -include $(top_builddir)/po/pogen.h $(DEFS) $(WFLAGS) $(CFLAGS) $< >$@
|
$(Q) $(CC) -E $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) -include $(top_builddir)/po/pogen.h $(DEFS) $(WFLAGS) $(CFLAGS) $< >$@
|
||||||
|
|
||||||
%.so: %.o
|
%.so: %.o
|
||||||
@echo " [CC] $<"
|
@echo " [CC] $(<F)"
|
||||||
$(Q) $(CC) -c $(CFLAGS) $(CLDFLAGS) $< $(LIBS) -o $@
|
$(Q) $(CC) -c $(CFLAGS) $(CLDFLAGS) $< $(LIBS) -o $@
|
||||||
|
|
||||||
ifneq (,$(LIB_SHARED))
|
ifneq (,$(LIB_SHARED))
|
||||||
@ -431,7 +431,7 @@ ifeq ("@LIB_SUFFIX@","dylib")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
$(LIB_SHARED): $(LIB_SHARED).$(LIB_VERSION)
|
$(LIB_SHARED): $(LIB_SHARED).$(LIB_VERSION)
|
||||||
@echo " [LN] $<"
|
@echo " [LN] $(<F)"
|
||||||
$(Q) $(LN_S) -f $(<F) $@
|
$(Q) $(LN_S) -f $(<F) $@
|
||||||
|
|
||||||
CLEAN_TARGETS += $(LDDEPS) .exported_symbols_generated
|
CLEAN_TARGETS += $(LDDEPS) .exported_symbols_generated
|
||||||
@ -463,7 +463,7 @@ $(LIB_STATIC): $(OBJECTS)
|
|||||||
$(Q) $(AR) rsv $@ $(OBJECTS) > /dev/null
|
$(Q) $(AR) rsv $@ $(OBJECTS) > /dev/null
|
||||||
|
|
||||||
%.d: %.c
|
%.d: %.c
|
||||||
@echo " [DEP] $<"
|
@echo " [DEP] $(<F)"
|
||||||
$(Q) $(MKDIR_P) $(dir $@); \
|
$(Q) $(MKDIR_P) $(dir $@); \
|
||||||
set -e; \
|
set -e; \
|
||||||
FILE=`echo $@ | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
|
FILE=`echo $@ | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
|
||||||
@ -475,7 +475,7 @@ $(LIB_STATIC): $(OBJECTS)
|
|||||||
[ -s $@ ] || $(RM) $@
|
[ -s $@ ] || $(RM) $@
|
||||||
|
|
||||||
%.mo: %.po
|
%.mo: %.po
|
||||||
@echo " [MSGFMT] $<"
|
@echo " [MSGFMT] $(<F)"
|
||||||
$(Q) $(MSGFMT) -o $@ $<
|
$(Q) $(MSGFMT) -o $@ $<
|
||||||
|
|
||||||
CLEAN_TARGETS += \
|
CLEAN_TARGETS += \
|
||||||
|
12
make.tmpl.in
12
make.tmpl.in
@ -440,19 +440,19 @@ endif
|
|||||||
DEFS+=-D_FILE_OFFSET_BITS=64
|
DEFS+=-D_FILE_OFFSET_BITS=64
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
@echo " [CC] $<"
|
@echo " [CC] $(<F)"
|
||||||
$(Q) $(CC) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@
|
$(Q) $(CC) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
@echo " [CXX] $<"
|
@echo " [CXX] $(<F)"
|
||||||
$(Q) $(CXX) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(CXXFLAGS) $(CXXFLAGS_$@) $< -o $@
|
$(Q) $(CXX) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(CXXFLAGS) $(CXXFLAGS_$@) $< -o $@
|
||||||
|
|
||||||
%.pot: %.c Makefile
|
%.pot: %.c Makefile
|
||||||
@echo " [CC] $@"
|
@echo " [CC] $(<F)"
|
||||||
$(Q) $(CC) -E $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) -include $(top_builddir)/po/pogen.h $(DEFS) $(WFLAGS) $(CFLAGS) $< >$@
|
$(Q) $(CC) -E $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) -include $(top_builddir)/po/pogen.h $(DEFS) $(WFLAGS) $(CFLAGS) $< >$@
|
||||||
|
|
||||||
%.so: %.o
|
%.so: %.o
|
||||||
@echo " [CC] $<"
|
@echo " [CC] $(<F)"
|
||||||
$(Q) $(CC) -c $(CFLAGS) $(CLDFLAGS) $< $(LIBS) -o $@
|
$(Q) $(CC) -c $(CFLAGS) $(CLDFLAGS) $< $(LIBS) -o $@
|
||||||
|
|
||||||
ifneq (,$(LIB_SHARED))
|
ifneq (,$(LIB_SHARED))
|
||||||
@ -502,7 +502,7 @@ $(LIB_STATIC): $(OBJECTS)
|
|||||||
$(Q) $(AR) rsv $@ $(OBJECTS) > /dev/null
|
$(Q) $(AR) rsv $@ $(OBJECTS) > /dev/null
|
||||||
|
|
||||||
%.d: %.c
|
%.d: %.c
|
||||||
@echo " [DEP] $<"
|
@echo " [DEP] $(<F)"
|
||||||
$(Q) $(MKDIR_P) $(dir $@); \
|
$(Q) $(MKDIR_P) $(dir $@); \
|
||||||
set -e; \
|
set -e; \
|
||||||
FILE=`echo $@ | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
|
FILE=`echo $@ | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
|
||||||
@ -514,7 +514,7 @@ $(LIB_STATIC): $(OBJECTS)
|
|||||||
[ -s $@ ] || $(RM) $@
|
[ -s $@ ] || $(RM) $@
|
||||||
|
|
||||||
%.mo: %.po
|
%.mo: %.po
|
||||||
@echo " [MSGFMT] $<"
|
@echo " [MSGFMT] $(<F)"
|
||||||
$(Q) $(MSGFMT) -o $@ $<
|
$(Q) $(MSGFMT) -o $@ $<
|
||||||
|
|
||||||
CLEAN_TARGETS += \
|
CLEAN_TARGETS += \
|
||||||
|
@ -112,7 +112,8 @@ $(MAN5) $(MAN7) $(MAN8) $(MAN8SO) $(MAN8DM) $(MAN8CLUSTER) $(MAN8SYSTEMD_GENERAT
|
|||||||
|
|
||||||
# Test whether or not the man page generator works
|
# Test whether or not the man page generator works
|
||||||
$(TESTMAN): $(MANGENERATOR) Makefile
|
$(TESTMAN): $(MANGENERATOR) Makefile
|
||||||
- $(MANGENERATOR) --primary lvmconfig > $@
|
@echo " [TSTMAN] $@"
|
||||||
|
$(Q) - $(MANGENERATOR) --primary lvmconfig > $@
|
||||||
|
|
||||||
SEE_ALSO=$(srcdir)/see_also.end
|
SEE_ALSO=$(srcdir)/see_also.end
|
||||||
|
|
||||||
@ -246,7 +247,8 @@ install_all_man: install install_systemd_generators
|
|||||||
|
|
||||||
# Copy generated man pages back to source tree as fallback for machines where generator doesn't work
|
# Copy generated man pages back to source tree as fallback for machines where generator doesn't work
|
||||||
pregenerated_man: all
|
pregenerated_man: all
|
||||||
set -e ; for i in $(srcdir)/*.8_des; do \
|
@echo " [GENERATE] $^"
|
||||||
|
$(Q) set -e ; for i in $(srcdir)/*.8_des; do \
|
||||||
CMD=`basename $$i .8_des`; \
|
CMD=`basename $$i .8_des`; \
|
||||||
cat $${CMD}.8_gen > $(srcdir)/$$CMD.8_pregen ; \
|
cat $${CMD}.8_gen > $(srcdir)/$$CMD.8_pregen ; \
|
||||||
done
|
done
|
||||||
|
@ -59,7 +59,7 @@ install: install_lvm2 install_ocf install_device-mapper
|
|||||||
|
|
||||||
# FIXME Customise for other distributions
|
# FIXME Customise for other distributions
|
||||||
install_initscripts:
|
install_initscripts:
|
||||||
@echo " [INSTALL] $<"
|
@echo " [INSTALL] initscripts"
|
||||||
$(Q) $(INSTALL_DIR) $(initdir)
|
$(Q) $(INSTALL_DIR) $(initdir)
|
||||||
ifeq ("@BUILD_DMEVENTD@", "yes")
|
ifeq ("@BUILD_DMEVENTD@", "yes")
|
||||||
$(Q) $(INSTALL_SCRIPT) lvm2_monitoring_init_red_hat $(initdir)/lvm2-monitor
|
$(Q) $(INSTALL_SCRIPT) lvm2_monitoring_init_red_hat $(initdir)/lvm2-monitor
|
||||||
@ -81,12 +81,12 @@ lvm2_activation_generator_systemd_red_hat: $(OBJECTS) $(LVMINTERNAL_LIBS)
|
|||||||
$(Q) $(CC) -o $@ $(OBJECTS) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) $(LVMINTERNAL_LIBS) $(LIBS)
|
$(Q) $(CC) -o $@ $(OBJECTS) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) $(LVMINTERNAL_LIBS) $(LIBS)
|
||||||
|
|
||||||
install_systemd_generators:
|
install_systemd_generators:
|
||||||
@echo " [INSTALL] $<"
|
@echo " [INSTALL] systemd_generators"
|
||||||
$(Q) $(INSTALL_DIR) $(systemd_generator_dir)
|
$(Q) $(INSTALL_DIR) $(systemd_generator_dir)
|
||||||
$(Q) $(INSTALL_PROGRAM) lvm2_activation_generator_systemd_red_hat $(systemd_generator_dir)/lvm2-activation-generator
|
$(Q) $(INSTALL_PROGRAM) lvm2_activation_generator_systemd_red_hat $(systemd_generator_dir)/lvm2-activation-generator
|
||||||
|
|
||||||
install_systemd_units: install_dbus_service
|
install_systemd_units: install_dbus_service
|
||||||
@echo " [INSTALL] $<"
|
@echo " [INSTALL] systemd_units"
|
||||||
$(Q) $(INSTALL_DIR) $(systemd_unit_dir)
|
$(Q) $(INSTALL_DIR) $(systemd_unit_dir)
|
||||||
$(Q) $(INSTALL_DATA) lvm2-pvscan.service $(systemd_unit_dir)/lvm2-pvscan@.service
|
$(Q) $(INSTALL_DATA) lvm2-pvscan.service $(systemd_unit_dir)/lvm2-pvscan@.service
|
||||||
ifeq ("@BUILD_DMEVENTD@", "yes")
|
ifeq ("@BUILD_DMEVENTD@", "yes")
|
||||||
@ -114,7 +114,7 @@ endif
|
|||||||
|
|
||||||
ifeq ("@BUILD_LVMDBUSD@", "yes")
|
ifeq ("@BUILD_LVMDBUSD@", "yes")
|
||||||
install_dbus_service:
|
install_dbus_service:
|
||||||
@echo " [INSTALL] $<"
|
@echo " [INSTALL] dbus_service"
|
||||||
$(Q) $(INSTALL_DIR) $(dbusconfdir)
|
$(Q) $(INSTALL_DIR) $(dbusconfdir)
|
||||||
$(Q) $(INSTALL_DIR) $(dbusservicedir)
|
$(Q) $(INSTALL_DIR) $(dbusservicedir)
|
||||||
$(Q) $(INSTALL_DATA) $(top_srcdir)/scripts/com.redhat.lvmdbus1.conf $(dbusconfdir)
|
$(Q) $(INSTALL_DATA) $(top_srcdir)/scripts/com.redhat.lvmdbus1.conf $(dbusconfdir)
|
||||||
@ -124,7 +124,7 @@ install_systemd_units: install_dbus_service
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
install_tmpfiles_configuration:
|
install_tmpfiles_configuration:
|
||||||
@echo " [INSTALL] $<"
|
@echo " [INSTALL] configuration"
|
||||||
$(Q) $(INSTALL_DIR) $(tmpfiles_dir)
|
$(Q) $(INSTALL_DIR) $(tmpfiles_dir)
|
||||||
$(Q) $(INSTALL_DATA) lvm2_tmpfiles_red_hat.conf $(tmpfiles_dir)/lvm2.conf
|
$(Q) $(INSTALL_DATA) lvm2_tmpfiles_red_hat.conf $(tmpfiles_dir)/lvm2.conf
|
||||||
|
|
||||||
|
@ -155,16 +155,16 @@ liblvm2cmd.$(LIB_SUFFIX): liblvm2cmd.a $(LDDEPS)
|
|||||||
@echo " [CC] $@"
|
@echo " [CC] $@"
|
||||||
$(Q) $(CC) -shared -Wl,-soname,$@.$(LIB_VERSION) \
|
$(Q) $(CC) -shared -Wl,-soname,$@.$(LIB_VERSION) \
|
||||||
$(CFLAGS) $(CLDFLAGS) -o $@ \
|
$(CFLAGS) $(CLDFLAGS) -o $@ \
|
||||||
@CLDWHOLEARCHIVE@ liblvm2cmd.a @CLDNOWHOLEARCHIVE@ \
|
@CLDWHOLEARCHIVE@ $< @CLDNOWHOLEARCHIVE@ \
|
||||||
$(LVMINTERNAL_LIBS) $(LVMLIBS)
|
$(LVMINTERNAL_LIBS) $(LVMLIBS)
|
||||||
|
|
||||||
liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION): liblvm2cmd.$(LIB_SUFFIX)
|
liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION): liblvm2cmd.$(LIB_SUFFIX)
|
||||||
@echo " [LN] $@"
|
@echo " [LN] $@"
|
||||||
$(Q) $(LN_S) -f $< $@
|
$(Q) $(LN_S) -f $< $@
|
||||||
|
|
||||||
.commands: $(srcdir)/commands.h $(srcdir)/cmdnames.h Makefile
|
.commands: $(srcdir)/cmdnames.h $(srcdir)/commands.h Makefile
|
||||||
@echo " [CC] $<"
|
@echo " [CC] $(<F)"
|
||||||
$(Q) $(CC) -E -P $(srcdir)/cmdnames.h 2> /dev/null | \
|
$(Q) $(CC) -E -P $< 2> /dev/null | \
|
||||||
$(EGREP) -v '^ *(|#.*|config|devtypes|dumpconfig|formats|fullreport|help|lastlog|lvmchange|lvpoll|pvdata|segtypes|systemid|tags|version) *$$' > .commands
|
$(EGREP) -v '^ *(|#.*|config|devtypes|dumpconfig|formats|fullreport|help|lastlog|lvmchange|lvpoll|pvdata|segtypes|systemid|tags|version) *$$' > .commands
|
||||||
|
|
||||||
command-count.h: $(srcdir)/command-lines.in Makefile
|
command-count.h: $(srcdir)/command-lines.in Makefile
|
||||||
@ -173,13 +173,13 @@ command-count.h: $(srcdir)/command-lines.in Makefile
|
|||||||
( cat $(top_srcdir)/tools/license.inc && \
|
( cat $(top_srcdir)/tools/license.inc && \
|
||||||
echo "/* Do not edit. This file is generated by the Makefile. */" && \
|
echo "/* Do not edit. This file is generated by the Makefile. */" && \
|
||||||
echo -n "#define COMMAND_COUNT " && \
|
echo -n "#define COMMAND_COUNT " && \
|
||||||
$(GREP) '^ID:' $(srcdir)/command-lines.in | $(WC) -l \
|
$(GREP) '^ID:' $< | $(WC) -l \
|
||||||
) > $@
|
) > $@
|
||||||
|
|
||||||
cmds.h: $(srcdir)/command-lines.in Makefile
|
cmds.h: $(srcdir)/command-lines.in Makefile
|
||||||
@echo " [GEN] $@"
|
@echo " [GEN] $@"
|
||||||
$(Q) set -o pipefail && \
|
$(Q) set -o pipefail && \
|
||||||
( cat $(top_srcdir)/tools/license.inc && \
|
( cat $(srcdir)/license.inc && \
|
||||||
echo "/* Do not edit. This file is generated by the Makefile. */" && \
|
echo "/* Do not edit. This file is generated by the Makefile. */" && \
|
||||||
echo "cmd(CMD_NONE, none)" && \
|
echo "cmd(CMD_NONE, none)" && \
|
||||||
$(GREP) '^ID:' $(srcdir)/command-lines.in | LANG=C $(SORT) -u | $(AWK) '{print "cmd(" $$2 "_CMD, " $$2 ")"}' && \
|
$(GREP) '^ID:' $(srcdir)/command-lines.in | LANG=C $(SORT) -u | $(AWK) '{print "cmd(" $$2 "_CMD, " $$2 ")"}' && \
|
||||||
@ -189,7 +189,7 @@ cmds.h: $(srcdir)/command-lines.in Makefile
|
|||||||
command-lines-input.h: $(srcdir)/command-lines.in Makefile
|
command-lines-input.h: $(srcdir)/command-lines.in Makefile
|
||||||
@echo " [GEN] $@"
|
@echo " [GEN] $@"
|
||||||
$(Q) set -o pipefail && \
|
$(Q) set -o pipefail && \
|
||||||
( cat $(top_srcdir)/tools/license.inc && \
|
( cat $(srcdir)/license.inc && \
|
||||||
echo "/* Do not edit. This file is generated by the Makefile. */" && \
|
echo "/* Do not edit. This file is generated by the Makefile. */" && \
|
||||||
echo -en "const char _command_input[] =\n\n\"" && \
|
echo -en "const char _command_input[] =\n\n\"" && \
|
||||||
$(EGREP) -v '^#|\-\-\-|^$$' $(srcdir)/command-lines.in | $(AWK) 'BEGIN {ORS = "\\n\"\n\""} //' && \
|
$(EGREP) -v '^#|\-\-\-|^$$' $(srcdir)/command-lines.in | $(AWK) 'BEGIN {ORS = "\\n\"\n\""} //' && \
|
||||||
@ -208,7 +208,7 @@ endif
|
|||||||
install_tools_dynamic install_tools_static
|
install_tools_dynamic install_tools_static
|
||||||
|
|
||||||
install_cmdlib_include: $(srcdir)/lvm2cmd.h
|
install_cmdlib_include: $(srcdir)/lvm2cmd.h
|
||||||
@echo " [INSTALL] $<"
|
@echo " [INSTALL] $(<F)"
|
||||||
$(Q) $(INSTALL_DATA) -D $< $(includedir)/$(<F)
|
$(Q) $(INSTALL_DATA) -D $< $(includedir)/$(<F)
|
||||||
|
|
||||||
install_cmdlib_dynamic: liblvm2cmd.$(LIB_SUFFIX)
|
install_cmdlib_dynamic: liblvm2cmd.$(LIB_SUFFIX)
|
||||||
@ -223,12 +223,12 @@ install_cmdlib_static: liblvm2cmd-static.a
|
|||||||
|
|
||||||
install_tools_dynamic: lvm .commands
|
install_tools_dynamic: lvm .commands
|
||||||
@echo " [INSTALL] $<"
|
@echo " [INSTALL] $<"
|
||||||
$(Q) $(INSTALL_PROGRAM) -D lvm $(sbindir)/lvm
|
$(Q) $(INSTALL_PROGRAM) -D $< $(sbindir)/$(<F)
|
||||||
@echo Creating symbolic links for individual commands in $(sbindir)
|
@echo Creating symbolic links for individual commands in $(sbindir)
|
||||||
@for v in `cat .commands`; do \
|
@cat .commands | while read v ; do \
|
||||||
test -n "$(Q)" || echo "$(LN_S) -f lvm $(sbindir)/$$v"; \
|
test -n "$(Q)" || echo "$(LN_S) -f $(<F) $(sbindir)/$$v"; \
|
||||||
$(LN_S) -f lvm $(sbindir)/$$v; \
|
$(LN_S) -f $(<F) $(sbindir)/$$v; \
|
||||||
done;
|
done
|
||||||
|
|
||||||
install_tools_static: lvm.static
|
install_tools_static: lvm.static
|
||||||
@echo " [INSTALL] $<"
|
@echo " [INSTALL] $<"
|
||||||
|
Loading…
Reference in New Issue
Block a user