From patchwork Wed Oct 26 21:24:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Bigonville X-Patchwork-Id: 9398351 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B7424600BA for ; Wed, 26 Oct 2016 21:24:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 817B929E10 for ; Wed, 26 Oct 2016 21:24:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7611B29E14; Wed, 26 Oct 2016 21:24:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from emsm-gh1-uea10.nsa.gov (emsm-gh1-uea10.nsa.gov [8.44.101.8]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4B86B29E10 for ; Wed, 26 Oct 2016 21:24:33 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.31,551,1473120000"; d="scan'208";a="307054" IronPort-PHdr: =?us-ascii?q?9a23=3AW+90sxbsMIcn49o2A+kWKaz/LSx+4OfEezUN459i?= =?us-ascii?q?sYplN5qZpcm5bnLW6fgltlLVR4KTs6sC0LuM9f6xEjVcut6oizMrSNR0TRgLiM?= =?us-ascii?q?EbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3Dwdp?= =?us-ascii?q?POO9QteU1JXtkb7jsMSPOE1hv3mUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO?= =?us-ascii?q?9MxGlldhq5lhf44dqsrtY4q3wD888784Z8dYmyP+FhFf0LRAghZns44MztqAnr?= =?us-ascii?q?URqE5nxaVH4f1BVPHVvr9hb/C7P4rzH3sPY18iiVOsvoTLQwVHz25aZkTxnAhC?= =?us-ascii?q?oNNjc/tmbNhZoj3+pgvBu9qkknkMbva4aPOa87J/vQ?= X-IPAS-Result: =?us-ascii?q?A2EIJwASHhFY/wHyM5BdHQEFAQsBgxQWAQEBAQEdgUoLowY?= =?us-ascii?q?LBpdXKIF7hhdTAQEBAQEBAQECAQJfKEISAYFeBAMTBXlbRAI3BgEBDCAMAgMJA?= =?us-ascii?q?hcIIQgIAwEtCwofCwUYBIgzAQMBsjaFMAEBBYgzHQiFcok5EQFohROaG5AVC4o?= =?us-ascii?q?JhXkCkQkCVF6DCoF/cIUJgS54gTEBAQE?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea10.nsa.gov with ESMTP; 26 Oct 2016 21:24:32 +0000 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u9QLODOi030292; Wed, 26 Oct 2016 17:24:19 -0400 Received: from tarius.tycho.ncsc.mil (tarius.infosec.tycho.ncsc.mil [144.51.242.1]) by prometheus.infosec.tycho.ncsc.mil (8.15.2/8.15.2) with ESMTP id u9QLOA38102292 for ; Wed, 26 Oct 2016 17:24:10 -0400 Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u9QLOApi030289 for ; Wed, 26 Oct 2016 17:24:10 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1D8GgCnHRFY/2OteVtdHQEFAQsBgxQWAQEBAQEdgUoLowYLBpNLhC+IF1MBAgEBAQEBAmIohSkBATgvbTSIVQMBsjWFMAEBBYhQCIVyijOFE5obkBULkAICkQkCVF6CRww3gX9wiGABAQE X-IPAS-Result: A1D8GgCnHRFY/2OteVtdHQEFAQsBgxQWAQEBAQEdgUoLowYLBpNLhC+IF1MBAgEBAQEBAmIohSkBATgvbTSIVQMBsjWFMAEBBYhQCIVyijOFE5obkBULkAICkQkCVF6CRww3gX9wiGABAQE X-IronPort-AV: E=Sophos;i="5.31,551,1473134400"; d="scan'208";a="5788075" Received: from emsm-gh1-uea11.corp.nsa.gov (HELO emsm-gh1-uea11.nsa.gov) ([10.208.41.37]) by goalie.tycho.ncsc.mil with ESMTP; 26 Oct 2016 17:24:09 -0400 IronPort-PHdr: =?us-ascii?q?9a23=3AFCp9shHbogiivChqIrsMwZ1GYnF86YWxBRYc798d?= =?us-ascii?q?s5kLTJ75pMSwAkXT6L1XgUPTWs2DsrQf2rCQ7fGrADBbqb+681k6OKRWUBEEjc?= =?us-ascii?q?hE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZv?= =?us-ascii?q?IaytQ8iJ3p7xibH5osGIKyxzxxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP?= =?us-ascii?q?5Xz247bXianhL7+9vitMU7q3cY6Lod8JtbXKH7ebkoZaBJBzQhdWYu7YvksgeQ?= =?us-ascii?q?YxGI4y44W3gMnxxUSyLE4xb8QJb1tiay4uB81y6cFcH7R7E9X3Kl9ag9G0ygsz?= =?us-ascii?q?sOKzNsqDKfscd3lq8O+B8=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0GkHQBJHhFY/2OteVtdHgYMGQYMgmkWA?= =?us-ascii?q?QEBAQEdgUoLowYLBpNLhC+CAIYXUwEBAQEBAQEBAgECXyiCMxiBAFuBAwEBOC9?= =?us-ascii?q?tNIhVAwGyNoUwAQEFiFAIhXKKM4UTmhuQFQuQAgKRCQJUXoJHDDeBf3CIYAEBA?= =?us-ascii?q?Q?= X-IPAS-Result: =?us-ascii?q?A0GkHQBJHhFY/2OteVtdHgYMGQYMgmkWAQEBAQEdgUoLowY?= =?us-ascii?q?LBpNLhC+CAIYXUwEBAQEBAQEBAgECXyiCMxiBAFuBAwEBOC9tNIhVAwGyNoUwA?= =?us-ascii?q?QEFiFAIhXKKM4UTmhuQFQuQAgKRCQJUXoJHDDeBf3CIYAEBAQ?= X-IronPort-AV: E=Sophos;i="5.31,551,1473120000"; d="scan'208";a="255882" Received: from anor.bigon.be ([91.121.173.99]) by emsm-gh1-uea11.nsa.gov with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Oct 2016 21:24:08 +0000 Received: from anor.bigon.be (localhost.localdomain [127.0.0.1]) by anor.bigon.be (Postfix) with ESMTP id 37D051A1A8 for ; Wed, 26 Oct 2016 23:24:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bigon.be; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received:received; s=key1; t=1477517043; x=1479331444; bh=pgiDj kggHhN/CxiTjtg7vmSUBqnExvswwUlPyvc9240=; b=i31v2HJdXSt1PMdGWTvNo +mE6HGibUh0fOOcQOisB4BsbkaBUYW1bbK1nrMZygDC/2wjIp2a5wDXjinrPZULA 2LjOzG71kXi0baRlnLNjJv3tWopwrIHoODBG9IjFdrPFu/IdqXkMKkAC7tOoGf0B gP9StRKaRWUR6XzcU4Rm8E= X-Virus-Scanned: Debian amavisd-new at bigon.be Received: from anor.bigon.be ([127.0.0.1]) by anor.bigon.be (anor.bigon.be [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id GRPYkS9csOko for ; Wed, 26 Oct 2016 23:24:03 +0200 (CEST) Received: from fornost.bigon.be (unknown [IPv6:2a02:a03f:6c:e500:edf:2fd8:fc0a:f176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bigon) by anor.bigon.be (Postfix) with ESMTPSA id 2AD7D1A06E for ; Wed, 26 Oct 2016 23:24:03 +0200 (CEST) Received: from bigon (uid 1000) (envelope-from bigon@bigon.be) id 3fc79 by fornost.bigon.be (DragonFly Mail Agent v0.11); Wed, 26 Oct 2016 23:24:02 +0200 From: Laurent Bigonville To: selinux@tycho.nsa.gov Subject: [PATCH] libselinux: Add clean-pywrap and clean-rubywrap targets Date: Wed, 26 Oct 2016 23:24:02 +0200 Message-Id: <20161026212402.31971-1-bigon@debian.org> X-Mailer: git-send-email 2.10.1 X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: MIME-Version: 1.0 Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP From: Laurent Bigonville Add clean targets to just clean the python and ruby wrapper objects Also clean $(SWIGRUBYSO) and $(AUDIT2WHYLOBJ) objects Signed-off-by: Laurent Bigonville --- libselinux/Makefile | 6 ++++++ libselinux/src/Makefile | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 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..1871551 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)