1
0
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:
Zdenek Kabelac 2024-04-27 11:36:55 +02:00
parent 063ade474c
commit 6ece8b74f0
4 changed files with 1905 additions and 1911 deletions

1
.gitignore vendored
View File

@ -52,7 +52,6 @@ daemons/dmfilemapd
daemons/lvmetad/
tools/man-generator
tools/man-generator.c
test/.lib-dir-stamp
test/.tests-stamp

View File

@ -98,7 +98,7 @@ CLEAN_TARGETS = liblvm2cmd.$(LIB_SUFFIX) $(TARGETS_DM) \
liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION) lvm-static.o \
liblvm2cmd-static.a lvm.static lvm-static.d \
$(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 ("@CMDLIB@", "yes")
@ -127,12 +127,6 @@ lvm: $(OBJECTS) lvm.o $(LVMINTERNAL_LIBS)
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) \
-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
$(SHOW) " [CC] $@"
$(Q) $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(<F)

File diff suppressed because it is too large Load Diff

1902
tools/man-generator.c Normal file

File diff suppressed because it is too large Load Diff