From bb010817ab49b8b80daba4ddc9e3a0ef0cb21491 Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Mon, 15 Apr 2013 20:46:22 +0200 Subject: Don't rebuild the manpages on install Only (forcefully) rebuild them when generating a source tarball. This is an addendum to 9b500. --- docs/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docs/Makefile') 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 -- cgit v1.2.3-24-g4f1b