Permalink
Browse files

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

  • Loading branch information...
1 parent 1474833 commit f16cfd8c907640c930a79d38f90f5bf7330040f1 @Aqua-Ye Aqua-Ye committed Jul 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Makefile
View
@@ -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

0 comments on commit f16cfd8

Please sign in to comment.