git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] When generating manpages, delete outdated targets first.

From
David Kastrup <dak@gnu.org>
Date
Aug 1, 2007, 23:48 UTC
Message-ID
<S1753674AbXHBABb/20070802000131Z+363@vger.kernel.org>

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
-- 
1.5.3.rc2.167.gbef44-dirty
Next: Junio C Hamano
Message 1 of 2 in “When generating manpages, delete outdated targets first.”
  1. When generating manpages, delete outdated targets first.David Kastrup, Aug 1, 2007
  2. Junio C HamanoAug 2, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.