Commit 2cc98e16 authored by Mike Frysinger's avatar Mike Frysinger

man: do not install pages for disabled commands

parent 5bf8112a
......@@ -39,6 +39,14 @@ else
LANGS = en_US
endif
IGNORE_CMDS = ""
ifneq ($(HAVE_IP_TOOLS),1)
IGNORE_CMDS += |ipmaddr.?|iptunnel.?
endif
ifneq ($(HAVE_MII),1)
IGNORE_CMDS += |mii-tool.?
endif
all:
clean:
......@@ -60,6 +68,7 @@ install:
$(INSTALL) -d -m 755 $$MAN_DIR; \
for CMD in *.$$SECTION; do \
[ -e $$CMD ] || continue; \
case $$CMD in $(IGNORE_CMDS)) continue;; esac; \
$(INSTALL) -m 644 $$CMD $$MAN_DIR || exit 1; \
done; \
done; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment