summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-03-30 18:04:27 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2021-03-30 18:04:27 +0200
commit133870c813d5f607de20bc24c789c3cd143318b4 (patch)
treea4a7d3f52544201e20d10878f10c19bbe11340b3
parent379ad07599cfd26a4ae1af792e92ef26ded67aca (diff)
Makefile: Fix install-man target for various projects
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r--Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2b03e0c..64faee0 100644
--- a/Makefile
+++ b/Makefile
@@ -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