Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[enhance] Makefile: install man from BUILD_DIR only if present

  • Loading branch information...
commit f16cfd8c907640c930a79d38f90f5bf7330040f1 1 parent 1474833
@Aqua-Ye Aqua-Ye authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Makefile
View
2  Makefile
@@ -238,8 +238,8 @@ install-man:
@printf "Installing into $(INSTALL_DIR)/share/man\r"
@if [ -d $(BUILD_DIR)/man/man1 ]; then \
mkdir -p $(INSTALL_DIR)/share/man/man1; \
- $(INSTALL) -r $(BUILD_DIR)/man/man1/*.1.gz $(INSTALL_DIR)/share/man/man1; \
fi
+ @$(if $(wildcard $(BUILD_DIR)/man/man1/*.1.gz),$(INSTALL) -r $(BUILD_DIR)/man/man1/*.1.gz $(INSTALL_DIR)/share/man/man1)
@printf "Installation to $(INSTALL_DIR)/share/man done.\n"
install: install-bin install-lib install-share install-plugins install-packages install-node-packages install-man
Please sign in to comment.
Something went wrong with that request. Please try again.