All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] libselinux: Add clean-pywrap and clean-rubywrap targets
@ 2016-10-26 21:41 Laurent Bigonville
  2016-10-27 14:45 ` Stephen Smalley
  0 siblings, 1 reply; 2+ messages in thread
From: Laurent Bigonville @ 2016-10-26 21:41 UTC (permalink / raw)
  To: selinux

From: Laurent Bigonville <bigon@bigon.be>

Add clean targets to just clean the python and ruby wrapper objects

Also clean $(SWIGRUBYSO) and $(AUDIT2WHYLOBJ) objects

Signed-off-by: Laurent Bigonville <bigon@bigon.be>
---
 libselinux/Makefile     |  6 ++++++
 libselinux/src/Makefile | 12 +++++++++---
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/libselinux/Makefile b/libselinux/Makefile
index ef971f4..979e225 100644
--- a/libselinux/Makefile
+++ b/libselinux/Makefile
@@ -57,4 +57,10 @@ install-pywrap:
 install-rubywrap: 
 	$(MAKE) -C src install-rubywrap $@
 
+clean-pywrap:
+	$(MAKE) -C src clean-pywrap $@
+
+clean-rubywrap:
+	$(MAKE) -C src clean-rubywrap $@
+
 test:
diff --git a/libselinux/src/Makefile b/libselinux/src/Makefile
index ccd8442..c9f35b1 100644
--- a/libselinux/src/Makefile
+++ b/libselinux/src/Makefile
@@ -187,8 +187,14 @@ install-rubywrap: rubywrap
 relabel:
 	/sbin/restorecon $(SHLIBDIR)/$(LIBSO)
 
-clean: 
-	-rm -f $(LIBPC) $(OBJS) $(LOBJS) $(LIBA) $(LIBSO) $(SWIGLOBJ) $(SWIGRUBYLOBJ) $(SWIGSO) $(TARGET) $(AUDIT2WHYSO) *.o *.lo *~
+clean-pywrap:
+	-rm -f $(SWIGLOBJ) $(SWIGSO) $(AUDIT2WHYLOBJ) $(AUDIT2WHYSO)
+
+clean-rubywrap:
+	-rm -f $(SWIGRUBYLOBJ) $(SWIGRUBYSO)
+
+clean: clean-pywrap clean-rubywrap
+	-rm -f $(LIBPC) $(OBJS) $(LOBJS) $(LIBA) $(LIBSO) $(TARGET) *.o *.lo *~
 
 distclean: clean
 	rm -f $(GENERATED) $(SWIGFILES)
@@ -196,4 +202,4 @@ distclean: clean
 indent:
 	../../scripts/Lindent $(filter-out $(GENERATED),$(wildcard *.[ch]))
 
-.PHONY: all clean pywrap rubywrap swigify install install-pywrap install-rubywrap distclean
+.PHONY: all clean clean-pywrap clean-rubywrap pywrap rubywrap swigify install install-pywrap install-rubywrap distclean
-- 
2.10.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] libselinux: Add clean-pywrap and clean-rubywrap targets
  2016-10-26 21:41 [PATCH v2] libselinux: Add clean-pywrap and clean-rubywrap targets Laurent Bigonville
@ 2016-10-27 14:45 ` Stephen Smalley
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2016-10-27 14:45 UTC (permalink / raw)
  To: Laurent Bigonville, selinux

On 10/26/2016 05:41 PM, Laurent Bigonville wrote:
> From: Laurent Bigonville <bigon@bigon.be>
> 
> Add clean targets to just clean the python and ruby wrapper objects
> 
> Also clean $(SWIGRUBYSO) and $(AUDIT2WHYLOBJ) objects
> 
> Signed-off-by: Laurent Bigonville <bigon@bigon.be>

Thanks, applied.

> ---
>  libselinux/Makefile     |  6 ++++++
>  libselinux/src/Makefile | 12 +++++++++---
>  2 files changed, 15 insertions(+), 3 deletions(-)
> 
> diff --git a/libselinux/Makefile b/libselinux/Makefile
> index ef971f4..979e225 100644
> --- a/libselinux/Makefile
> +++ b/libselinux/Makefile
> @@ -57,4 +57,10 @@ install-pywrap:
>  install-rubywrap: 
>  	$(MAKE) -C src install-rubywrap $@
>  
> +clean-pywrap:
> +	$(MAKE) -C src clean-pywrap $@
> +
> +clean-rubywrap:
> +	$(MAKE) -C src clean-rubywrap $@
> +
>  test:
> diff --git a/libselinux/src/Makefile b/libselinux/src/Makefile
> index ccd8442..c9f35b1 100644
> --- a/libselinux/src/Makefile
> +++ b/libselinux/src/Makefile
> @@ -187,8 +187,14 @@ install-rubywrap: rubywrap
>  relabel:
>  	/sbin/restorecon $(SHLIBDIR)/$(LIBSO)
>  
> -clean: 
> -	-rm -f $(LIBPC) $(OBJS) $(LOBJS) $(LIBA) $(LIBSO) $(SWIGLOBJ) $(SWIGRUBYLOBJ) $(SWIGSO) $(TARGET) $(AUDIT2WHYSO) *.o *.lo *~
> +clean-pywrap:
> +	-rm -f $(SWIGLOBJ) $(SWIGSO) $(AUDIT2WHYLOBJ) $(AUDIT2WHYSO)
> +
> +clean-rubywrap:
> +	-rm -f $(SWIGRUBYLOBJ) $(SWIGRUBYSO)
> +
> +clean: clean-pywrap clean-rubywrap
> +	-rm -f $(LIBPC) $(OBJS) $(LOBJS) $(LIBA) $(LIBSO) $(TARGET) *.o *.lo *~
>  
>  distclean: clean
>  	rm -f $(GENERATED) $(SWIGFILES)
> @@ -196,4 +202,4 @@ distclean: clean
>  indent:
>  	../../scripts/Lindent $(filter-out $(GENERATED),$(wildcard *.[ch]))
>  
> -.PHONY: all clean pywrap rubywrap swigify install install-pywrap install-rubywrap distclean
> +.PHONY: all clean clean-pywrap clean-rubywrap pywrap rubywrap swigify install install-pywrap install-rubywrap distclean
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-27 14:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-26 21:41 [PATCH v2] libselinux: Add clean-pywrap and clean-rubywrap targets Laurent Bigonville
2016-10-27 14:45 ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.