summaryrefslogtreecommitdiffstats
path: root/share/mk/install/html.mk
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:40:15 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:40:15 +0000
commit399644e47874bff147afb19c89228901ac39340e (patch)
tree1c4c0b733f4c16b5783b41bebb19194a9ef62ad1 /share/mk/install/html.mk
parentInitial commit. (diff)
downloadmanpages-399644e47874bff147afb19c89228901ac39340e.tar.xz
manpages-399644e47874bff147afb19c89228901ac39340e.zip
Adding upstream version 6.05.01.upstream/6.05.01
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/mk/install/html.mk')
-rw-r--r--share/mk/install/html.mk36
1 files changed, 36 insertions, 0 deletions
diff --git a/share/mk/install/html.mk b/share/mk/install/html.mk
new file mode 100644
index 0000000..97e00ce
--- /dev/null
+++ b/share/mk/install/html.mk
@@ -0,0 +1,36 @@
+########################################################################
+# Copyright 2021-2022, Alejandro Colomar <alx@kernel.org>
+# SPDX-License-Identifier: GPL-3.0-or-later
+########################################################################
+
+
+ifndef MAKEFILE_INSTALL_HTML_INCLUDED
+MAKEFILE_INSTALL_HTML_INCLUDED := 1
+
+
+include $(MAKEFILEDIR)/build/html.mk
+include $(MAKEFILEDIR)/install/_.mk
+
+
+htmldir := $(docdir)
+htmldir_ := $(htmldir)/man
+_htmldir := $(DESTDIR)$(htmldir_)
+
+
+_htmlpages := $(patsubst $(_HTMLDIR)/%,$(_htmldir)/%,$(_HTMLPAGES))
+_htmlpages_rm := $(addsuffix -rm,$(wildcard $(_htmlpages)))
+
+
+$(_htmlpages): $(_htmldir)/%: $(_HTMLDIR)/% | $$(@D)/
+ $(info INSTALL $@)
+ $(INSTALL_DATA) -T $< $@
+
+
+.PHONY: install-html
+install-html: $(_htmlpages);
+
+.PHONY: uninstall-html
+uninstall-html: $(_htmlpages_rm);
+
+
+endif # include guard