summaryrefslogtreecommitdiff
path: root/tools/Makefile.in
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2022-09-27 09:06:06 -0500
committerDavid Teigland <teigland@redhat.com>2022-09-27 09:06:06 -0500
commitc1ab9fb37faee56cee278ccd94cb958d30d61b94 (patch)
tree335cb13f34d7b943726af7f7dc15d1e9e06595bf /tools/Makefile.in
parentfd05b79aad6ccf89f85bd85f5a4b32e1275ce785 (diff)
downloadlvm2-c1ab9fb37faee56cee278ccd94cb958d30d61b94.tar.gz
make: move cmds.h
generate the header in the include dir so it can be easily used from both lib and tools dirs.
Diffstat (limited to 'tools/Makefile.in')
-rw-r--r--tools/Makefile.in18
1 files changed, 4 insertions, 14 deletions
diff --git a/tools/Makefile.in b/tools/Makefile.in
index 25fe3b6b3..49d9b89c7 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -98,7 +98,7 @@ CLEAN_TARGETS = liblvm2cmd.$(LIB_SUFFIX) $(TARGETS_DM) \
liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION) lvm-static.o \
liblvm2cmd-static.a lvm.static \
$(LDDEPS) .exported_symbols_generated \
- cmds.h command-lines-input.h command-count.h man-generator.c
+ command-lines-input.h command-count.h man-generator.c
ifeq ("@CMDLIB@", "yes")
TARGETS += liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION)
@@ -175,16 +175,6 @@ command-count.h: $(srcdir)/command-lines.in Makefile
$(GREP) '^ID:' $< | $(WC) -l \
) > $@
-cmds.h: $(srcdir)/command-lines.in Makefile
- @echo " [GEN] $@"
- $(Q) set -o pipefail && \
- ( cat $(srcdir)/license.inc && \
- echo "/* Do not edit. This file is generated by the Makefile. */" && \
- echo "cmd(CMD_NONE, none)" && \
- $(GREP) '^ID:' $(srcdir)/command-lines.in | LC_ALL=C $(SORT) -u | $(AWK) '{print "cmd(" $$2 "_CMD, " $$2 ")"}' && \
- echo "cmd(CMD_COUNT, count)" \
- ) > $@
-
command-lines-input.h: $(srcdir)/command-lines.in Makefile
@echo " [GEN] $@"
$(Q) set -o pipefail && \
@@ -195,9 +185,9 @@ command-lines-input.h: $(srcdir)/command-lines.in Makefile
echo "\\n\\n\";" \
) > $@
-$(SOURCES:%.c=%.d) $(SOURCES2:%.c=%.d): command-lines-input.h command-count.h cmds.h
-$(SOURCES:%.c=%.o) $(SOURCES2:%.c=%.o): command-lines-input.h command-count.h cmds.h
-lvm.cflow lvm.xref lvm.tree lvm.xref: command-lines-input.h command-count.h cmds.h
+$(SOURCES:%.c=%.d) $(SOURCES2:%.c=%.d): command-lines-input.h command-count.h
+$(SOURCES:%.c=%.o) $(SOURCES2:%.c=%.o): command-lines-input.h command-count.h
+lvm.cflow lvm.xref lvm.tree lvm.xref: command-lines-input.h command-count.h
.PHONY: install_cmdlib_dynamic install_cmdlib_static install_cmdlib_include \
install_tools_dynamic install_tools_static