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

[PATCH GIT 0.6.3] Add an uninstall target to Makefile

From
MAMartin Atukunda <matlads@ds.co.ug>
Date
Apr 26, 2005, 13:48 UTC
Message-ID
<200504261648.22814.matlads@ds.co.ug>

Add an uninstall target to Makefile that removes installed scripts and programs.

Signed-off-by: Martin Atukunda <matlads@ds.co.ug>
Index: Makefile
===================================================================
--- 0a9ee5a4d947b998a7ce489242800b39f98eeee5/Makefile  (mode:100644 
sha1:2d7e4cf0464c45b7c5b169bff7e5c4e7768c13a1)
+++ uncommitted/Makefile  (mode:100644)
@@ -82,6 +82,9 @@
        install -m755 -d $(DESTDIR)$(bindir)
        install $(PROG) $(SCRIPT) $(GEN_SCRIPT) $(DESTDIR)$(bindir)
 
+uninstall:
+       cd $(DESTDIR)$(bindir) && rm $(PROG) $(SCRIPT) $(GEN_SCRIPT)
+
 clean:
        rm -f *.o mozilla-sha1/*.o $(PROG) $(GEN_SCRIPT) $(LIB_FILE)
Message 1 of 1 in “Add an uninstall target to Makefile”
  1. Add an uninstall target to MakefileMartin Atukunda, Apr 26, 2005

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.