Re: [hackers] [lchat][PATCH] Makefile: provides an uninstall target

From: shirenn <shirenn_AT_crans.org>
Date: Fri, 29 Jan 2021 21:47:48 +0100

Signed-off-by: shirenn <shirenn_AT_crans.org>
---
 Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index ea45200..cc24402 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -1,14 +1,17 @@
 include config.mk
-.PHONY: all install filter clean test
+.PHONY: all install uninstall filter clean test
 all: lchat
 clean:
  rm -f lchat *.o *.core sl_test filter/indent
 install: lchat
- cp lchat ${BINDIR}
- cp lchat.1 ${MAN1DIR}
+ cp lchat ${DESTDIR}${BINDIR}
+ cp lchat.1 ${DESTDIR}${MAN1DIR}
+
+uninstall:
+ rm -f ${DESTDIR}${BINDIR}/lchat ${DESTDIR}${MAN1DIR}/lchat.1
 test: sl_test
  ./sl_test
--
2.30.0
I bundled the changes you asked with the ones about forcing the remove.



Received on Fri Jan 29 2021 - 21:47:48 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 29 2021 - 21:48:38 CET