From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 83188A0583; Fri, 20 Mar 2020 09:03:05 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 697FC2BBE; Fri, 20 Mar 2020 09:03:04 +0100 (CET) Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 5418DF94 for ; Fri, 20 Mar 2020 09:03:02 +0100 (CET) Received: by mail-pf1-f195.google.com with SMTP id i13so2839463pfe.3 for ; Fri, 20 Mar 2020 01:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emumba-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cgDTbtLFco+y4q3DxwjTqDUxebli8dwNNy1fZ1e0a6k=; b=k0p39TxF1IUg9JNefzEE9gIM9VG0VGvlyf55gMMt91L9ugteCnnnDf5WB4XUspCmxl LMS17CnCPWHfMjipGUDTe97oF3DaPAEzkTIVfibtRXKKPcxvnFVwxXE2wa+2G0Hgl5q8 1jRE4rVR/bWwDmRMhGOsN62s8ts7W2H8ObxgqB64K2iI9LsrSYB+mr92d//XvbRyuqUV PtwX/SZKz8917sCajVVMHz1STeQvfLHU3Ia8AvKf8/liFI3Ve888Gjet05VwETU1CS41 ddO0STGyl/GyHHvD/JOo+flAYy83IjPmG8bqAtZiywCqzGGoQojnct/BkizvVV1Nj7Gq zSMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cgDTbtLFco+y4q3DxwjTqDUxebli8dwNNy1fZ1e0a6k=; b=O9tnyXauixX7KBqwe2z4tr4hyFHZ63QFQEnd259UhNDW+ExidoMtGRSy5WLBgkg6d6 CFd76zY4w9vFaLPjHq8tjpag8eYqKgvTxQ0bnuE9pbEAhHnoqdWmVRHn0GD65/TZu/Bk JseK25GWV2j2dq4MnmiGjaOOVxYiL8Bk7z/1sqU4SqAXHwMrJH0Wj6cDj3jfHsSMNVCz x/ktfCrSUE+f1HvXQLrWlApnoFaNe+qZfTOTbgErcz3YzzNyUfzUwEZKNM90y++xiXjV nDPSF6r8LwX1ouwFTN6bp7z6ye9mcNg2RSKTecCUuzg2TliS4mE0Avo/Ewi/BSG32XhC zJ/w== X-Gm-Message-State: ANhLgQ3XcVrAEW0IeunVwc78B/oEEKb0b/CNXaovOn/+vPhqaafC2X/3 9qns4SrW6kpTQn3tJ1Yt7caMSA== X-Google-Smtp-Source: ADFU+vtbdPiJa/acsq1+I8gs3F5w7J8Xwv+tU6WJPPRmIN6elzaEU4YEinswS2WFPSdBNXi6XODd+Q== X-Received: by 2002:a63:5d51:: with SMTP id o17mr7443706pgm.159.1584691381183; Fri, 20 Mar 2020 01:03:01 -0700 (PDT) Received: from localhost.localdomain ([111.119.178.162]) by smtp.gmail.com with ESMTPSA id e24sm4624205pfi.200.2020.03.20.01.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Mar 2020 01:03:00 -0700 (PDT) From: Muhammad Bilal To: thomas@monjalon.net, john.mcnamara@intel.com, bluca@debian.org Cc: Muhammad Bilal , dev@dpdk.org, stable@dpdk.org Date: Fri, 20 Mar 2020 13:02:01 +0500 Message-Id: <20200320080201.14171-1-m.bilal@emumba.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200319132722.11325-1-m.bilal@emumba.com> References: <20200319132722.11325-1-m.bilal@emumba.com> Subject: [dpdk-dev] [PATCH v2 18.11 17.11] doc: in doc-clean removed the folder not containing rst files X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" in doc-clean removing the folder which contain the text files and no .rst files, they cause problem When switching branches and compiling the documentation for older releases (for example building a documentation on 18.11 or 17.11, with a documentation on master branch, built before. Bugzilla ID: 364 Cc: Thomas Monjalon Cc: John McNamara Cc: M: Luca Boccassi Cc: dev@dpdk.org Cc: stable@dpdk.org Signed-off-by: Muhammad Bilal --- v2: * Added Details of branches for which patch is used. * This patch is intended for v18.11 and v17.11 branches mk/rte.sdkdoc.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mk/rte.sdkdoc.mk b/mk/rte.sdkdoc.mk index c44db6447..a80250ce8 100644 --- a/mk/rte.sdkdoc.mk +++ b/mk/rte.sdkdoc.mk @@ -37,7 +37,7 @@ help: all: api-html guides-html guides-pdf .PHONY: clean -clean: api-html-clean guides-html-clean guides-pdf-clean guides-man-clean +clean: api-html-clean guides-html-clean guides-pdf-clean guides-man-clean guide-table-clean .PHONY: api-html api-html: $(API_EXAMPLES) @@ -56,7 +56,7 @@ api-html: $(API_EXAMPLES) .PHONY: api-html-clean api-html-clean: $(Q)rm -f $(API_EXAMPLES) - $(Q)rm -f $(RTE_OUTPUT)/doc/html/api/* + $(Q)rm -rf $(RTE_OUTPUT)/doc/html/api/* $(Q)rmdir -p --ignore-fail-on-non-empty $(RTE_OUTPUT)/doc/html/api 2>&- || true $(API_EXAMPLES): api-html-clean @@ -67,6 +67,10 @@ guides-pdf-clean: guides-pdf-img-clean guides-pdf-img-clean: $(Q)rm -f $(RTE_SDK)/doc/guides/*/img/*.pdf +guide-table-clean: guide-overview_feature_table-clean +guide-overview_feature_table-clean: + $(Q)rm -rf $(shell find $(RTE_SDK)/doc/guides/ -maxdepth 1 -type d '!' -exec test -e "{}/index.rst" ';' -print) + guides-%-clean: $(Q)rm -rf $(RTE_OUTPUT)/doc/$*/guides $(Q)rmdir -p --ignore-fail-on-non-empty $(RTE_OUTPUT)/doc/$* 2>&- || true -- 2.17.1