summaryrefslogtreecommitdiffstats
path: root/docs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/Makefile b/docs/Makefile
index 879e5ac..2fd858b 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -2,11 +2,15 @@
MANPAGES = netctl.1 netctl.profile.5 netctl.special.7
-.PHONY: manpages clean
+.PHONY: manpages install $(MANPAGES:=-install) clean
manpages: $(MANPAGES)
$(MANPAGES): %: %.txt
a2x -d manpage -f manpage -a manversion=$(VERSION) $<
+install: $(MANPAGES:=-install)
+$(MANPAGES:=-install): %-install: %
+ install -Dm644 $< $(DESTDIR)/usr/share/man/man$(subst .,,$(suffix $<))/$<
+
clean:
-@rm -vf $(MANPAGES) 2>/dev/null