threads / patch / 328

patchAdd an uninstall target to Makefile

Subject: [PATCH GIT 0.6.3] Add an uninstall target to Makefile

## tl;dr

One message between Apr 26, 2005 and Apr 26, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Martin Atukunda· Apr 26, 2005, 13:48 UTC · lore

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

Signed-off-by: Martin Atukunda <matlads@ds.co.ug>
Show changes to diff +3 −0
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)

← back to recent threads