Makefile: provides an uninstall target - lchat - A line oriented chat front end… | |
git clone git://git.suckless.org/lchat | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit 0408127d9db566364530dc8690081a9c3d133bca | |
parent efee03173dd837d97b88529851385e9812d39d4d | |
Author: shirenn <[email protected]> | |
Date: Fri, 29 Jan 2021 21:47:48 +0100 | |
Makefile: provides an uninstall target | |
Signed-off-by: shirenn <[email protected]> | |
Diffstat: | |
M Makefile | 9 ++++++--- | |
1 file changed, 6 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
@@ -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 |