# [PATCH] more dependencies in doc generation

2 messages from 2007-09-20 to 2007-09-20. Participants: Alexey Mahotkin.
Thread: https://gitlist.dev/t/9952

## Alexey Mahotkin, 2007-09-20 20:43

Subject: [PATCH] more dependencies in doc generation
Message-ID: <bb5b640b0709201343j5a04a554ib91785b43464d4d2@mail.gmail.com>
URL: https://gitlist.dev/e/bb5b640b0709201343j5a04a554ib91785b43464d4d2%40mail.gmail.com

```
Hi,

I'm trying to solve the problem with `man git-diff' (unescaped troff
sequences in manpage), and the first thing that will obviously help is
the following patch:

diff --git a/Documentation/Makefile b/Documentation/Makefile
index fbefe9a..310d6a5 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -135,11 +135,11 @@ clean:
                $(ASCIIDOC_EXTRA) -agit_version=$(GIT_VERSION) -o $@+ $<
        mv $@+ $@

-%.1 %.5 %.7 : %.xml
+%.1 %.5 %.7 : %.xml callouts.xsl
        $(RM) $@
        xmlto -m callouts.xsl man $<

-%.xml : %.txt
+%.xml : %.txt asciidoc.conf
        $(RM) $@+ $@
        $(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \
                $(ASCIIDOC_EXTRA) -agit_version=$(GIT_VERSION) -o $@+ $<

It helps to regenerate things correctly when the stylesheets change.
Please apply.

Thank you,

-- 
Alexey Mahotkin
http://www.versioncontrolblog.com/

```

## Alexey Mahotkin, 2007-09-20 21:42

Subject: Re: [PATCH] more dependencies in doc generation
Message-ID: <bb5b640b0709201442i5380097fu71bdd32ac30a5af8@mail.gmail.com>
URL: https://gitlist.dev/e/bb5b640b0709201442i5380097fu71bdd32ac30a5af8%40mail.gmail.com
In-Reply-To: <bb5b640b0709201343j5a04a554ib91785b43464d4d2@mail.gmail.com>

```
On 9/21/07, Alexey Mahotkin <squadette@gmail.com> wrote:
> --- a/Documentation/Makefile
> +++ b/Documentation/Makefile
> @@ -135,11 +135,11 @@ clean:
> -%.xml : %.txt
> +%.xml : %.txt asciidoc.conf

This change is not needed, sorry.

-- 
Alexey Mahotkin
http://www.versioncontrolblog.com/

```
