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

[PATCH] Makefile: don't remove configure on distclean

From
Jonas 'Sortie' Termansen <sortie@maxsi.org>
Date
Nov 5, 2024, 10:13 UTC
Message-ID
<76f4dfe6-3724-472b-9b42-c91926e61fd1@maxsi.org>

make distclean conventionally restores the extracted release tarball to its original distributed contents by cleaning the source code for distribution. However, the configure script is part of the distribution and should not be removed. This behavior is creating problems on my package infrastructure where configure-based packages have make distclean run afterwards and then the subsequent git build fails.

Signed-off-by: Jonas 'Sortie' Termansen <sortie@maxsi.org>
---
 Makefile | 1 -
 1 file changed, 1 deletion(-)
diff --git a/Makefile b/Makefile
index 6f5986b66e..c488b914a0 100644
--- a/Makefile
+++ b/Makefile
@@ -3723,7 +3723,6 @@ dist-doc: git$X
 ### Cleaning rules
 
 distclean: clean
-	$(RM) configure
 	$(RM) config.log config.status config.cache
 	$(RM) config.mak.autogen config.mak.append
 	$(RM) -r autom4te.cache
-- 
2.45.2
Next: Junio C Hamano
Message 1 of 3 in “Makefile: don't remove configure on distclean”
  1. Makefile: don't remove configure on distcleanJonas 'Sortie' Termansen, Nov 5, 2024
  2. Junio C HamanoNov 5, 2024
  3. Makefile: don't remove configure on distcleanJonas 'Sortie' Termansen, Nov 5, 2024

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.