Commit 2530afd
Makefile: generate Git(3pm) as dependency of the 'doc' and 'man' targets
Since commit 20d2a30 (Makefile: replace perl/Makefile.PL with
simple make rules, 2017-12-10), the Git(3pm) man page is only
generated as an indirect dependency of the 'install-doc' and
'install-man' Makefile targets. Consequently, if someone runs 'make
man && sudo make install-man' (or their 'doc' counterparts), then
Git(3pm) will be generated as root, and the resulting root-owned files
and directories will in turn cause the next user-run 'make clean' to
fail. This was not an issue in the past, because Git(3pm) was
generated when 'make all' descended into 'perl/', which is usually not
run as root.
List Git(3pm) as a dependency of the 'doc' and 'man' Makefile targets,
too, so it gets generated by targets that are usually built as
ordinary users.
While at it, add 'install-man-perl' to the list of .PHONY targets.
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Acked-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 7a7bfc7 commit 2530afd
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2193 | 2193 | | |
2194 | 2194 | | |
2195 | 2195 | | |
2196 | | - | |
2197 | | - | |
| 2196 | + | |
| 2197 | + | |
2198 | 2198 | | |
2199 | 2199 | | |
2200 | | - | |
| 2200 | + | |
2201 | 2201 | | |
2202 | 2202 | | |
| 2203 | + | |
| 2204 | + | |
2203 | 2205 | | |
2204 | 2206 | | |
2205 | 2207 | | |
| |||
2596 | 2598 | | |
2597 | 2599 | | |
2598 | 2600 | | |
2599 | | - | |
| 2601 | + | |
2600 | 2602 | | |
2601 | 2603 | | |
2602 | 2604 | | |
| |||
2607 | 2609 | | |
2608 | 2610 | | |
2609 | 2611 | | |
2610 | | - | |
| 2612 | + | |
2611 | 2613 | | |
2612 | 2614 | | |
2613 | 2615 | | |
| |||
0 commit comments