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

[PATCH] diff-highlight: Add clean target to Makefile

From
DWDaniel Watkins <daniel@daniel-watkins.co.uk>
Date
Aug 29, 2017, 11:23 UTC
Message-ID
<20170829112311.16432-1-daniel@daniel-watkins.co.uk>

Now that `make` produces a file, we should have a clean target to remove it.

Signed-off-by: Daniel Watkins <daniel@daniel-watkins.co.uk>
---
 contrib/diff-highlight/Makefile | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/contrib/diff-highlight/Makefile b/contrib/diff-highlight/Makefile
index fbf5c5824..f2be7cc92 100644
--- a/contrib/diff-highlight/Makefile
+++ b/contrib/diff-highlight/Makefile
@@ -17,4 +17,7 @@ shebang.perl: FORCE
 test: all
 	$(MAKE) -C t
 
+clean:
+	$(RM) diff-highlight
+
 .PHONY: FORCE
-- 
2.14.1
Next: Jeff King
Message 1 of 2 in “diff-highlight: Add clean target to Makefile”
  1. diff-highlight: Add clean target to MakefileDaniel Watkins, Aug 29, 2017
  2. Jeff KingAug 29, 2017

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.