diff mbox

tools: add distclean target to libs/toollog Makefile

Message ID 1452155101-1242-1-git-send-email-jgross@suse.com (mailing list archive)
State New, archived
Headers show

Commit Message

Juergen Gross Jan. 7, 2016, 8:25 a.m. UTC
The new logging library Makefile doesn't support the distclean target.
Add it.

Also remove all created shared library versions via the clean target.

Signed-off-by: Juergen Gross <jgross@suse.com>
---
 tools/libs/toollog/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Ian Campbell Jan. 7, 2016, 10:36 a.m. UTC | #1
On Thu, 2016-01-07 at 09:25 +0100, Juergen Gross wrote:
> The new logging library Makefile doesn't support the distclean target.
> Add it.
> 
> Also remove all created shared library versions via the clean target.
> 
> Signed-off-by: Juergen Gross <jgross@suse.com>

Acked-by: Ian Campbell <ian.campbell@citrix.com>

(I've also made a note to check this in the other patches adding more
libraries which haven't landed yet)

> ---
>  tools/libs/toollog/Makefile | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/tools/libs/toollog/Makefile b/tools/libs/toollog/Makefile
> index bd12403..9bfd179 100644
> --- a/tools/libs/toollog/Makefile
> +++ b/tools/libs/toollog/Makefile
> @@ -57,3 +57,7 @@ TAGS:
>  .PHONY: clean
>  clean:
>  	rm -rf *.rpm $(LIB) *~ $(DEPS) $(LIB_OBJS) $(PIC_OBJS)
> +	rm -f libxentoollog.so.$(MAJOR).$(MINOR)
> libxentoollog.so.$(MAJOR)
> +
> +.PHONY: distclean
> +distclean: clean
Ian Campbell Jan. 7, 2016, 1:25 p.m. UTC | #2
On Thu, 2016-01-07 at 10:36 +0000, Ian Campbell wrote:
> On Thu, 2016-01-07 at 09:25 +0100, Juergen Gross wrote:
> > The new logging library Makefile doesn't support the distclean target.
> > Add it.
> > 
> > Also remove all created shared library versions via the clean target.
> > 
> > Signed-off-by: Juergen Gross <jgross@suse.com>
> 
> Acked-by: Ian Campbell <ian.campbell@citrix.com>

and applied.
diff mbox

Patch

diff --git a/tools/libs/toollog/Makefile b/tools/libs/toollog/Makefile
index bd12403..9bfd179 100644
--- a/tools/libs/toollog/Makefile
+++ b/tools/libs/toollog/Makefile
@@ -57,3 +57,7 @@  TAGS:
 .PHONY: clean
 clean:
 	rm -rf *.rpm $(LIB) *~ $(DEPS) $(LIB_OBJS) $(PIC_OBJS)
+	rm -f libxentoollog.so.$(MAJOR).$(MINOR) libxentoollog.so.$(MAJOR)
+
+.PHONY: distclean
+distclean: clean