diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-03-30 18:04:27 +0200 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2021-03-30 18:04:27 +0200 |
commit | 133870c813d5f607de20bc24c789c3cd143318b4 (patch) | |
tree | a4a7d3f52544201e20d10878f10c19bbe11340b3 | |
parent | 379ad07599cfd26a4ae1af792e92ef26ded67aca (diff) |
Makefile: Fix install-man target for various projects
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r-- | Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -140,7 +140,20 @@ installdirs-srv: .PHONY: install-man install-man: - $(MAKE) -C src/man-pages/ install-html htmldir='$(wwwdir)/share/'; + cd $(htmlbuilddir)/ && \ + find man?/ -type f \ + |while read f; do \ + $(INSTALL_DATA) -T "$$f" "$(DESTDIR)$(wwwdir)/share/man/$$f" \ + || exit $$?; \ + done; + +.PHONY: installdirs-man +installdirs-man: + cd $(htmlbuilddir)/ && \ + find man?/ -type d \ + |while read d; do \ + $(INSTALL_DIR) "$(DESTDIR)$(wwwdir)/share/man/$$d" || exit $$?; \ + done; .PHONY: image image: Dockerfile submodules |