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

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Thu, 28 Jan 2021 17:56:18 +0100

On Thu, Jan 28, 2021 at 04:55:58PM +0100, shirenn wrote:
> Signed-off-by: shirenn <shirenn_AT_crans.org>
> ---
> Makefile | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index ea45200..675ac76 100644
> --- a/Makefile
> +++ b/Makefile
> _AT_@ -1,6 +1,6 @@
> include config.mk
>
> -.PHONY: all install filter clean test
> +.PHONY: all install uninstall filter clean test
>
> all: lchat
> clean:
> _AT_@ -10,6 +10,9 @@ install: lchat
> cp lchat ${BINDIR}
> cp lchat.1 ${MAN1DIR}
>
> +uninstall:
> + rm ${BINDIR}/lchat ${MAN1DIR}/lchat.1
> +
> test: sl_test
> ./sl_test
>
> --
> 2.30.0
>
>

Hi,

It would be nice if the Makefile respects $DESTDIR also (can be a separate patch).

-- 
Kind regards,
Hiltjo

Received on Thu Jan 28 2021 - 17:56:18 CET

This archive was generated by hypermail 2.3.0 : Thu Jan 28 2021 - 18:00:42 CET