[hackers] [lchat] Makefile: provides an uninstall target || shirenn

From: <git_AT_suckless.org>
Date: Tue, 20 Sep 2022 16:46:19 +0200 (CEST)

commit 0408127d9db566364530dc8690081a9c3d133bca
Author: shirenn <shirenn_AT_crans.org>
AuthorDate: Fri Jan 29 21:47:48 2021 +0100
Commit: Jan Klemkow <j.klemkow_AT_wemelug.de>
CommitDate: Sun Jan 31 11:12:46 2021 +0100

    Makefile: provides an uninstall target
    
    Signed-off-by: shirenn <shirenn_AT_crans.org>

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
Received on Tue Sep 20 2022 - 16:46:19 CEST

This archive was generated by hypermail 2.3.0 : Tue Sep 20 2022 - 16:48:37 CEST