From patchwork Wed Oct 26 21:41:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Bigonville X-Patchwork-Id: 9398469 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 57CCD60477 for ; Wed, 26 Oct 2016 21:42:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20CCC29ABD for ; Wed, 26 Oct 2016 21:42:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15C5729C05; Wed, 26 Oct 2016 21:42:28 +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 (smtp.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 6516829B3A for ; Wed, 26 Oct 2016 21:42:27 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.31,551,1473120000"; d="scan'208";a="307454" IronPort-PHdr: =?us-ascii?q?9a23=3AMQKR4RLQ81vzGz2ecNmcpTZWNBhigK39O0sv0rFi?= =?us-ascii?q?tYgUL/3xwZ3uMQTl6Ol3ixeRBMOAuqgC1LKd6/uocFdDyK7JiGoFfp1IWk1Nou?= =?us-ascii?q?QttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIs?= =?us-ascii?q?YL+kQMiN14/vjKibwN76W01wnj2zYLd/fl2djD76kY0ou7ZkMbs70RDTo3FFKK?= =?us-ascii?q?x8zGJsIk+PzV6nvp/jtKN592xsn95pt4sZCeSpN5g/GKdVCDUgLnAd+NzgtR6F?= =?us-ascii?q?SxCGoHQbTDY4iB1NVizM8Qv3WIu5mCr1sexj2S2eMIWiR7E7XjKK46phSRbuzi?= =?us-ascii?q?AdOGhqoynslsVsgfcD81qarBtlztuROdmY?= X-IPAS-Result: =?us-ascii?q?A2EdJwDMIhFY/wHyM5BdHQEFAQsBGBgHgl0WAQEBAQEdgUo?= =?us-ascii?q?LowYLBpdXKIF7hhhTAQEBAQEBAQECAQJfKEISAYFeBAMTBXlbRAI3BgEBDCAMA?= =?us-ascii?q?gMJAhcIIQgIAwEtCwofCwUYBIgzAQMBskCFMAEBBYgyHQiFcok5EQFohROaG5A?= =?us-ascii?q?VC4oJhXuRCQJUXoMKgX9whQmBLniBMQEBAQ?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea10.nsa.gov with ESMTP; 26 Oct 2016 21:42:25 +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 u9QLg0qY032161; Wed, 26 Oct 2016 17:42:05 -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 u9QLg0Cw102325 for ; Wed, 26 Oct 2016 17:42:00 -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 u9QLfxCo032159 for ; Wed, 26 Oct 2016 17:41:59 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1D8GgBOIhFY/2OteVtdHQEFAQsBgxQWAQEBAQEdgUoLowYLBpNLhC+IGFMBAgEBAQEBAmIohSkBATgvbTSIVQMBskCFMAEBBYhPCIVyijOFE5obkBULkASRCQJUXoJHDDeBf3CIYAEBAQ X-IPAS-Result: A1D8GgBOIhFY/2OteVtdHQEFAQsBgxQWAQEBAQEdgUoLowYLBpNLhC+IGFMBAgEBAQEBAmIohSkBATgvbTSIVQMBskCFMAEBBYhPCIVyijOFE5obkBULkASRCQJUXoJHDDeBf3CIYAEBAQ X-IronPort-AV: E=Sophos;i="5.31,551,1473134400"; d="scan'208";a="5788137" 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:41:59 -0400 IronPort-PHdr: =?us-ascii?q?9a23=3ATyuQux/+gdKwu/9uRHKM819IXTAuvvDOBiVQ1KB9?= =?us-ascii?q?0OwcTK2v8tzYMVDF4r011RmSDN+dtKoP07GempujcFRI2YyGvnEGfc4EfD4+ou?= =?us-ascii?q?JSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47AblHf6ke/8SQVUk2mc1Ek?= =?us-ascii?q?fKKqQsWK1Iye7KObw9XreQJGhT6wM/tZDS6dikHvjPQQmpZoMa0ryxHE8TNicu?= =?us-ascii?q?VSwn50dxrIx06vrpT4wJk26ClUuvQ85+ZcQK76eOI+VrUeAzM4YE4v48i+kRDe?= =?us-ascii?q?VwaJ+jM2U2oRlARJBwzIpEXwX5j2tAP2u+B80S/cOtf5G+NnEQ++5rtmHUe7wB?= =?us-ascii?q?wMMCQ0pTna?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0GpHQDWIRFY/2OteVtdHgYMgxQWAQEBA?= =?us-ascii?q?QEdgUoLowYLBpNLhC+CAIYYUwEBAQEBAQEBAgECXyiCMxiBAFuBAwEBOC9tNIh?= =?us-ascii?q?VAwGyPIUwAQEFiFAIhXKKM4UTmhuQFQuQBJEJAlRegkcMN4F/cIhgAQEB?= X-IPAS-Result: =?us-ascii?q?A0GpHQDWIRFY/2OteVtdHgYMgxQWAQEBAQEdgUoLowYLBpN?= =?us-ascii?q?LhC+CAIYYUwEBAQEBAQEBAgECXyiCMxiBAFuBAwEBOC9tNIhVAwGyPIUwAQEFi?= =?us-ascii?q?FAIhXKKM4UTmhuQFQuQBJEJAlRegkcMN4F/cIhgAQEB?= X-IronPort-AV: E=Sophos;i="5.31,551,1473120000"; d="scan'208";a="256322" 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:41:58 +0000 Received: from anor.bigon.be (localhost.localdomain [127.0.0.1]) by anor.bigon.be (Postfix) with ESMTP id 72A2A1A1A8 for ; Wed, 26 Oct 2016 23:41:57 +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=1477518114; x=1479332515; bh=qplQe d+Cz0TsULhLn0voTRds95ci57blxDIHfUQ+Occ=; b=kp7P8vhQeDp62T7GVsqxr 9kkXgydq9H5GqOI4x4Dpiqse1y5+OfQJHw7n+pz0G+wnwj0FnXrDj4LCgklyHYh/ 25++znDCGSjeND5uKDm/7IM5CanbrAoRrYUmm0V4vHsDSM7f0jula9eJZ6xwpJvW YrYeMHwuBrqMezgqBCXYZ8= 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 MkT4Ciop4Eqb for ; Wed, 26 Oct 2016 23:41:54 +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 C29D11A06E for ; Wed, 26 Oct 2016 23:41:54 +0200 (CEST) Received: from bigon (uid 1000) (envelope-from bigon@bigon.be) id 3fc39 by fornost.bigon.be (DragonFly Mail Agent v0.11); Wed, 26 Oct 2016 23:41:54 +0200 From: Laurent Bigonville To: selinux@tycho.nsa.gov Subject: [PATCH v2] libselinux: Add clean-pywrap and clean-rubywrap targets Date: Wed, 26 Oct 2016 23:41:54 +0200 Message-Id: <20161026214154.32509-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 | 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