From: Junio C Hamano <gitster@pobox.com>
To: David Kastrup <dak@gnu.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] When generating manpages, delete outdated targets first.
Date: Wed, 01 Aug 2007 17:53:31 -0700 [thread overview]
Message-ID: <7vlkcu3gfo.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <S1753674AbXHBABb/20070802000131Z+363@vger.kernel.org> (David Kastrup's message of "Thu, 2 Aug 2007 01:48:44 +0200")
David Kastrup <dak@gnu.org> writes:
> This makes "make doc" work even if you made "sudo make doc" previously
> by mistake. Apparently an oversight: the other targets did this already.
>
> Signed-off-by: David Kastrup <dak@gnu.org>
> ---
> Documentation/Makefile | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/Documentation/Makefile b/Documentation/Makefile
> index 3bc5357..a186843 100644
> --- a/Documentation/Makefile
> +++ b/Documentation/Makefile
> @@ -120,6 +120,7 @@ clean:
> mv $@+ $@
>
> %.1 %.5 %.7 : %.xml
> + $(RM) $@+ $@
> xmlto -m callouts.xsl man $<
>
> %.xml : %.txt
I think "rm" makes sense; the call to xmlto in this Makefile has
been this way from day one, it seems ;-).
The build rule for this target does not use "generate to
temporary $@+ and after that is successful mv to the final $@"
pattern, so we do not have to remove $@+ in this target, though.
Thanks.
prev parent reply other threads:[~2007-08-02 0:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-01 23:48 [PATCH] When generating manpages, delete outdated targets first David Kastrup
2007-08-02 0:53 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vlkcu3gfo.fsf@assigned-by-dhcp.cox.net \
--to=gitster@pobox.com \
--cc=dak@gnu.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox