mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
command: split man-generator code
Move code for generating man pages to man-generator.c which is no longer a symlink to command.c and just includes this file for the common code.
This commit is contained in:
parent
063ade474c
commit
6ece8b74f0
1
.gitignore
vendored
1
.gitignore
vendored
@ -52,7 +52,6 @@ daemons/dmfilemapd
|
|||||||
daemons/lvmetad/
|
daemons/lvmetad/
|
||||||
|
|
||||||
tools/man-generator
|
tools/man-generator
|
||||||
tools/man-generator.c
|
|
||||||
|
|
||||||
test/.lib-dir-stamp
|
test/.lib-dir-stamp
|
||||||
test/.tests-stamp
|
test/.tests-stamp
|
||||||
|
@ -98,7 +98,7 @@ CLEAN_TARGETS = liblvm2cmd.$(LIB_SUFFIX) $(TARGETS_DM) \
|
|||||||
liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION) lvm-static.o \
|
liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION) lvm-static.o \
|
||||||
liblvm2cmd-static.a lvm.static lvm-static.d \
|
liblvm2cmd-static.a lvm.static lvm-static.d \
|
||||||
$(LDDEPS) .exported_symbols_generated cmds.h \
|
$(LDDEPS) .exported_symbols_generated cmds.h \
|
||||||
command-lines-input.h command-count.h man-generator.c
|
command-lines-input.h command-count.h
|
||||||
|
|
||||||
ifeq ("@SHARED_LINK@", "yes")
|
ifeq ("@SHARED_LINK@", "yes")
|
||||||
ifeq ("@CMDLIB@", "yes")
|
ifeq ("@CMDLIB@", "yes")
|
||||||
@ -127,12 +127,6 @@ lvm: $(OBJECTS) lvm.o $(LVMINTERNAL_LIBS)
|
|||||||
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) \
|
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) \
|
||||||
-o $@ $+ $(LVMLIBS)
|
-o $@ $+ $(LVMLIBS)
|
||||||
|
|
||||||
DEFS_man-generator.o += -DMAN_PAGE_GENERATOR
|
|
||||||
|
|
||||||
man-generator.c: $(srcdir)/command.c
|
|
||||||
$(SHOW) " [LN] $@"
|
|
||||||
$(Q) $(LN_S) -f $< $(@F)
|
|
||||||
|
|
||||||
man-generator: man-generator.o
|
man-generator: man-generator.o
|
||||||
$(SHOW) " [CC] $@"
|
$(SHOW) " [CC] $@"
|
||||||
$(Q) $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(<F)
|
$(Q) $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(<F)
|
||||||
|
1905
tools/command.c
1905
tools/command.c
File diff suppressed because it is too large
Load Diff
1902
tools/man-generator.c
Normal file
1902
tools/man-generator.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user