libselinux: Add clean-pywrap and clean-rubywrap targets

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>
This commit is contained in:
Laurent Bigonville 2016-10-26 23:41:54 +02:00 committed by Stephen Smalley
parent a610f08d2e
commit 640edd601b
2 changed files with 15 additions and 3 deletions

View File

@ -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:

View File

@ -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