Use builtin man pages support in automake script

This commit is contained in:
CismonX 2020-07-21 09:53:00 +08:00
parent f6b56438d6
commit 2263ffc6f6
1 changed files with 1 additions and 10 deletions

View File

@ -1,10 +1 @@
MANPATH_MAP = $(shell cat $(MANPATH_CONF) | grep ^MANPATH_MAP | grep -w -m1 $(prefix)/bin) notrans_dist_man1_MANS = u6a.1 u6ac.1
MAN_DIR = $(word 3, $(MANPATH_MAP))
MAN1_DIR = $(MAN_DIR)/man1
MAN_FILES = u6ac.1 u6a.1
install: $(MAN_FILES)
cp $^ $(MAN1_DIR) && $(REBUILD_MANDB) $(MAN_DIR)
uninstall: $(MAN_FILES)
pushd $(MAN1_DIR) && rm -f $^ && popd && $(REBUILD_MANDB) $(MAN_DIR)