Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 805D6431FBD for ; Mon, 10 Mar 2014 04:15:02 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iGgfY7vJvBOU for ; Mon, 10 Mar 2014 04:14:55 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id 5C227431FBC for ; Mon, 10 Mar 2014 04:14:55 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 9993B10008C; Mon, 10 Mar 2014 13:14:50 +0200 (EET) From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH] doc: build man pages at build time, not install In-Reply-To: <1394449633-14737-1-git-send-email-david@tethera.net> References: <1394449633-14737-1-git-send-email-david@tethera.net> User-Agent: Notmuch/0.17+112~g4e0c1d5 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2014 11:15:02 -0000 On Mon, Mar 10 2014, David Bremner wrote: > This helps avoid build artifacts (namely, nroff and gzipped-nroff man > pages) owned by root. > --- Looks good... on paper :D. +1 Tomi > Makefile.local | 2 +- > doc/Makefile.local | 6 ++++-- > 2 files changed, 5 insertions(+), 3 deletions(-) > > diff --git a/Makefile.local b/Makefile.local > index 5f797ad..cb7b106 100644 > --- a/Makefile.local > +++ b/Makefile.local > @@ -53,7 +53,7 @@ endif > FINAL_LIBNOTMUCH_LDFLAGS = $(LDFLAGS) $(AS_NEEDED_LDFLAGS) $(CONFIGURE_LDFLAGS) > > .PHONY: all > -all: notmuch notmuch-shared > +all: notmuch notmuch-shared build-man > ifeq ($(MAKECMDGOALS),) > ifeq ($(shell cat .first-build-message 2>/dev/null),) > @NOTMUCH_FIRST_BUILD=1 $(MAKE) --no-print-directory all > diff --git a/doc/Makefile.local b/doc/Makefile.local > index fd64f70..5be49dc 100644 > --- a/doc/Makefile.local > +++ b/doc/Makefile.local > @@ -16,7 +16,7 @@ ALLSPHINXOPTS := -d $(DOCBUILDDIR)/doctrees $(SPHINXOPTS) $(dir) > .PHONY: sphinx-html sphinx-man sphinx-texinfo sphinx-info > .PHONY: rst2man > > -.PHONY: install-man > +.PHONY: install-man build-man > > %.gz: % > rm -f $@ && gzip --stdout $^ > $@ > @@ -43,7 +43,9 @@ MAN_GZIP_FILES := $(addsuffix .gz,${MAN_ROFF_FILES}) > > ${MAN_ROFF_FILES} : sphinx-man > > -install-man: ${MAN_GZIP_FILES} > +build-man: ${MAN_GZIP_FILES} > + > +install-man: build-man > mkdir -p "$(DESTDIR)$(mandir)/man1" > mkdir -p "$(DESTDIR)$(mandir)/man5" > mkdir -p "$(DESTDIR)$(mandir)/man7" > -- > 1.8.5.3 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch