summaryrefslogtreecommitdiffstats
path: root/docs/Makefile
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2013-04-15 20:46:22 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2013-04-15 20:46:22 +0200
commitbb010817ab49b8b80daba4ddc9e3a0ef0cb21491 (patch)
treea61d3bd95d1963ead1906cd0397fc89d81239672 /docs/Makefile
parent494ac0bd090df5f33f2e62fe41ecd58ed9422461 (diff)
downloadnetctl-bb010817ab49b8b80daba4ddc9e3a0ef0cb21491.tar.gz
netctl-bb010817ab49b8b80daba4ddc9e3a0ef0cb21491.tar.xz
Don't rebuild the manpages on install
Only (forcefully) rebuild them when generating a source tarball. This is an addendum to 9b500.
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