Message ID | 20240208145001.61769-1-thorsten.blum@toblux.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-58250-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp274508dyd; Thu, 8 Feb 2024 08:09:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXST1NSyCKOtHgxtlPtvVk6lXH8aLYYcDOYuGO9P/6arXT1SFWQM/LQtZv7O7KaHdrV0IdWoBNDNwUkDK80HHh58sRB3Q== X-Google-Smtp-Source: AGHT+IEqZ2EuHtl8v8Bs8GErcPFjOV8fDRhNQhanrSqSMPp7xqTid459+ILMV+KbdRZBkcDSPN3m X-Received: by 2002:a17:90b:1917:b0:296:889:63b with SMTP id mp23-20020a17090b191700b002960889063bmr6387748pjb.42.1707408543464; Thu, 08 Feb 2024 08:09:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707408543; cv=pass; d=google.com; s=arc-20160816; b=zN/8yty2lle6YcfpJehb7vQswMMFcDDl1H2mijqa8/Tu8x4xUhVjZyRY5QJWZLzdbj BqHAAY67S4lMC6FPWRL6PRR+CQIl9hGZxe4YB/Bq5Q6H4uokdrFPA82UvzLcNBpP0Uxe 2Emr/BVV70gnvzk5/hH0S1K8aaWFjv+S0EY2pgxwUQ7iqgc66UFvejes3suAzAz0cor2 rKk75VVy0cMlnOwTMP6VJd+qg9w67tq3v2x6LWDB6jlykxioo0S1b2B6sU54fR6TZ1Fs uRNq6Ouo61FeO5yIAYVHK42kxuoo5Q8gM2T6ZTwMZ1eGE9IiK9KZo/sHVSJdZB9Lob0e bmMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=2d3bjISixj6XxfcjFNFffsbfi1JCl6LveKlFSzCZnjI=; fh=9TRT+wCx7Nv58ZqslfbalT8ICGgW+kfQG11IL66ZcHg=; b=ZzoVCpO0+RcWShBVuwCMzrN3kQG/N6OYYpib93G4KuIY5KWRWt+49FcTrN/SqV0RTX gAezndUu1YK75lPPrSg/oWHW5B8xbq5hxiMocUSxWZqhB4prLb/RrX1dyAQxH1dyBTpb ziRoSG+AXIMoEasNPpDmZojQxfv5H94eMTPINKWsEizkToi01VizycBjw/115LabnFD0 /O4zS9LDr/2pTKVF4unqmD7x4qvVAOVbi3LV7PhENafpgcJLvz21+pCXZFrawRHfatQt 2XJEJtzKrYUqe/78LljatEFAXhVCsJHNEDVpH06A1nw0IuIGEkBmoRTuwmTLddHoPWTv +Maw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toblux-com.20230601.gappssmtp.com header.s=20230601 header.b=JeGk+hdY; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-58250-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58250-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCW7/kv1IBNXp0TiE910C7oLBXny6lC1Xv6pdMKEzBC2VJ9JFlQhAuEC+OHa543wI55ybiscEFW6ru/6tx5jQ7DQy9dIeQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id gp17-20020a17090adf1100b00290349120dfsi1610057pjb.129.2024.02.08.08.09.03 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 08:09:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58250-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@toblux-com.20230601.gappssmtp.com header.s=20230601 header.b=JeGk+hdY; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-58250-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58250-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 33D0C289372 for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 14:52:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC79E7B3C9; Thu, 8 Feb 2024 14:52:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=toblux-com.20230601.gappssmtp.com header.i=@toblux-com.20230601.gappssmtp.com header.b="JeGk+hdY" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47E111E89A for <linux-kernel@vger.kernel.org>; Thu, 8 Feb 2024 14:52:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707403933; cv=none; b=Yxod16wEuoyij0YGcNhkibSYUaOFacs8zfIkgHOE/VKKLeoQ5mdTBW5ZTd3oAiyWndA+EaG6WlRX9Aq5/X8ambSjMynAR0EBKB03826+0WIuO1e+MX+y3DSax/A/tKhJJYLfDn/b4gC3zLtawRju7ySfPUCGMhBFI8G8VDjlzsY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707403933; c=relaxed/simple; bh=8aXxMqKjuGYAZbxGk8K/JAdM76UCaTFG5zJidRIuLWg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=YNgPfa4RhQweeROR7yM0GX5uKde6KMiIvX4vohoD/KsncPKo/YLFI6P+G31xB3wCmPQK0dzybna4Bgw/vD11o+PAvefInL182akihWVic+6pCuhyVMF5uQiK4pOcEiHRpnwHYtZlrzdKM1eqWo8tDI9lKnM0lwZi1rGMjq58thk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=toblux.com; spf=none smtp.mailfrom=toblux.com; dkim=pass (2048-bit key) header.d=toblux-com.20230601.gappssmtp.com header.i=@toblux-com.20230601.gappssmtp.com header.b=JeGk+hdY; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=toblux.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=toblux.com Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a381df83113so194069466b.3 for <linux-kernel@vger.kernel.org>; Thu, 08 Feb 2024 06:52:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toblux-com.20230601.gappssmtp.com; s=20230601; t=1707403930; x=1708008730; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2d3bjISixj6XxfcjFNFffsbfi1JCl6LveKlFSzCZnjI=; b=JeGk+hdYZTj0eVsDhqIns7VzmdjERt3De3j4me5wo1de0FdOu+ARuNdaaz8P6oFpsG o/87pOazLEIsZb+aPf95b4j7zs844l96MEmWA+LU1Md1MJp2liV0osNdNotV/MNkbmpu yiBgo685IjNltGB6jMghmehJ2G+OhFpTd7lDAMAzcy+GYAWJutwwbfG4FUSmO/kPTVWR 1Fwy0jTyHSldT1noJN8kseJx2rBHvElYA4t4x1wUK6nEoIE8Q71oVD73JPGQj8vqlQyV npb0G6Iz3lzqE2M98zrUcen6SKiAv/lIMN5EbTweONEDY1Xf5r3nXpBrg9grOek4OjkD v8OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707403930; x=1708008730; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2d3bjISixj6XxfcjFNFffsbfi1JCl6LveKlFSzCZnjI=; b=NAqU6SzFhQ9ZA+4DIKeHmlNHK3Hje1rg5Er/0nS4ekAYXMAbJsAm8nRAQM8bWU/GWl nThhEC6w1YgNb8zfeOAHjbg3Y2c6vBcIByV5N82vYjEdc2j0aPDuV6ygS168U9iR2poV oOsfCMpqQqzhT8f1/rN4US+o0jw3BVzAi8MyIJjCEfHPWoMI326H9m/ky5qW7FjAZ5Pm e5dt2G19fkOVLo3n4vBFJ1U939z4hsaJKv4YKYaoDXI1/hQHsKpblEQQVHu8Ky+6pXrx TKKdEJNyI1PCTjuYRx10MRYz+w5DkjnlhpYEO3gT5uz7RaqsT62dYE4TgivI44cyAH1J 06+w== X-Forwarded-Encrypted: i=1; AJvYcCUEHwtB/DAiKk/ofdT43p8/VaiprYQbmVVDS9uw4lvpN/P68s+0TW7POFZWbSjxrAezvX6Si7rMp/UuZB3YWKWezjrpbaRYyvc1STJq X-Gm-Message-State: AOJu0YzFlKgnrYekS8YOKhNN1xfbrA0i0f7b5oxUKr+ukX+33v/kMbpV tTu6QjY6A5Hb9rGIg5EK2fysb+xl2N/OabNjdryqxxadVacb+IhfWzO6rVVxIQM= X-Received: by 2002:a17:906:5d:b0:a36:3c59:3449 with SMTP id 29-20020a170906005d00b00a363c593449mr7096417ejg.56.1707403930393; Thu, 08 Feb 2024 06:52:10 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWX+VIhhLkDx/C51uQV+PvNpVgeYss76QEu3Fd+6M96VTCfqgZ/Q+Tt1egxnwQUla/veuyA3FhPG8GcgYW65/Y30mMrw3dnuMS5exJUn75yWgK+xU/uSffTtPMI4fs0Edymc4Tb4Fw= Received: from debian.fritz.box (aftr-82-135-80-180.dynamic.mnet-online.de. [82.135.80.180]) by smtp.gmail.com with ESMTPSA id v8-20020a1709067d8800b00a3bb6de59ddsm122994ejo.100.2024.02.08.06.52.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 06:52:09 -0800 (PST) From: Thorsten Blum <thorsten.blum@toblux.com> To: Jonathan Corbet <corbet@lwn.net> Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Thorsten Blum <thorsten.blum@toblux.com> Subject: [PATCH] docs: Makefile: Fix make cleandocs by deleting generated .rst files Date: Thu, 8 Feb 2024 15:50:01 +0100 Message-Id: <20240208145001.61769-1-thorsten.blum@toblux.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790347620640010985 X-GMAIL-MSGID: 1790347620640010985 |
Series |
docs: Makefile: Fix make cleandocs by deleting generated .rst files
|
|
Commit Message
Thorsten Blum
Feb. 8, 2024, 2:50 p.m. UTC
The script tools/net/ynl/ynl-gen-rst.py (YNL_TOOL) generates several .rst
files (YNL_INDEX, YNL_RST_FILES) in Documentation/networking/netlink_spec
(YNL_RST_DIR) which are not deleted by make cleandocs.
Fix make cleandocs by deleting the generated .rst files.
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
---
Documentation/Makefile | 1 +
1 file changed, 1 insertion(+)
Comments
Thorsten Blum <thorsten.blum@toblux.com> writes: > The script tools/net/ynl/ynl-gen-rst.py (YNL_TOOL) generates several .rst > files (YNL_INDEX, YNL_RST_FILES) in Documentation/networking/netlink_spec > (YNL_RST_DIR) which are not deleted by make cleandocs. > > Fix make cleandocs by deleting the generated .rst files. > > Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com> > --- > Documentation/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/Makefile b/Documentation/Makefile > index 3885bbe260eb..4479910166fc 100644 > --- a/Documentation/Makefile > +++ b/Documentation/Makefile > @@ -176,6 +176,7 @@ refcheckdocs: > $(Q)cd $(srctree);scripts/documentation-file-ref-check > > cleandocs: > + $(Q)rm -f $(YNL_INDEX) $(YNL_RST_FILES) > $(Q)rm -rf $(BUILDDIR) > $(Q)$(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/userspace-api/media clean So this seems worth doing ... except that there has been talk about not depositing those files into the source tree in the first place. Adding Vegard and Breno to see if they have any thoughts on the matter... Thanks, jon
On Thu, Feb 08, 2024 at 03:52:08PM -0700, Jonathan Corbet wrote: > Thorsten Blum <thorsten.blum@toblux.com> writes: > > > The script tools/net/ynl/ynl-gen-rst.py (YNL_TOOL) generates several .rst > > files (YNL_INDEX, YNL_RST_FILES) in Documentation/networking/netlink_spec > > (YNL_RST_DIR) which are not deleted by make cleandocs. > > > > Fix make cleandocs by deleting the generated .rst files. > > > > Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com> > > --- > > Documentation/Makefile | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/Documentation/Makefile b/Documentation/Makefile > > index 3885bbe260eb..4479910166fc 100644 > > --- a/Documentation/Makefile > > +++ b/Documentation/Makefile > > @@ -176,6 +176,7 @@ refcheckdocs: > > $(Q)cd $(srctree);scripts/documentation-file-ref-check > > > > cleandocs: > > + $(Q)rm -f $(YNL_INDEX) $(YNL_RST_FILES) I haven't check but I _think_ that just deleting $(YNL_INDEX) is enough here, since $(YNL_INDEX) depends on $(YNL_RST_FILES). > > $(Q)rm -rf $(BUILDDIR) > > $(Q)$(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/userspace-api/media clean > > So this seems worth doing ... except that there has been talk about not > depositing those files into the source tree in the first place. Adding > Vegard and Breno to see if they have any thoughts on the matter... Agree. This is definitely worth doing.
On 09/02/2024 10:38, Breno Leitao wrote: > On Thu, Feb 08, 2024 at 03:52:08PM -0700, Jonathan Corbet wrote: >> Thorsten Blum <thorsten.blum@toblux.com> writes: >> >>> The script tools/net/ynl/ynl-gen-rst.py (YNL_TOOL) generates several .rst >>> files (YNL_INDEX, YNL_RST_FILES) in Documentation/networking/netlink_spec >>> (YNL_RST_DIR) which are not deleted by make cleandocs. >>> >>> Fix make cleandocs by deleting the generated .rst files. >>> >>> Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com> >>> --- >>> Documentation/Makefile | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/Documentation/Makefile b/Documentation/Makefile >>> index 3885bbe260eb..4479910166fc 100644 >>> --- a/Documentation/Makefile >>> +++ b/Documentation/Makefile >>> @@ -176,6 +176,7 @@ refcheckdocs: >>> $(Q)cd $(srctree);scripts/documentation-file-ref-check >>> >>> cleandocs: >>> + $(Q)rm -f $(YNL_INDEX) $(YNL_RST_FILES) > > I haven't check but I _think_ that just deleting $(YNL_INDEX) is enough > here, since $(YNL_INDEX) depends on $(YNL_RST_FILES). I think removing all of them is the right thing to do. >>> $(Q)rm -rf $(BUILDDIR) >>> $(Q)$(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/userspace-api/media clean >> >> So this seems worth doing ... except that there has been talk about not >> depositing those files into the source tree in the first place. Adding >> Vegard and Breno to see if they have any thoughts on the matter... > > Agree. This is definitely worth doing. Agree too. I'll have a look into putting those files in the build directory, this patch shouldn't affect that. Reviewed-by: Vegard Nossum <vegard.nossum@oracle.com> Vegard
Thorsten Blum <thorsten.blum@toblux.com> writes: > The script tools/net/ynl/ynl-gen-rst.py (YNL_TOOL) generates several .rst > files (YNL_INDEX, YNL_RST_FILES) in Documentation/networking/netlink_spec > (YNL_RST_DIR) which are not deleted by make cleandocs. > > Fix make cleandocs by deleting the generated .rst files. > > Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com> > --- > Documentation/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/Makefile b/Documentation/Makefile > index 3885bbe260eb..4479910166fc 100644 > --- a/Documentation/Makefile > +++ b/Documentation/Makefile > @@ -176,6 +176,7 @@ refcheckdocs: > $(Q)cd $(srctree);scripts/documentation-file-ref-check > > cleandocs: > + $(Q)rm -f $(YNL_INDEX) $(YNL_RST_FILES) > $(Q)rm -rf $(BUILDDIR) > $(Q)$(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/userspace-api/media clean Applied, thanks. jon
diff --git a/Documentation/Makefile b/Documentation/Makefile index 3885bbe260eb..4479910166fc 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -176,6 +176,7 @@ refcheckdocs: $(Q)cd $(srctree);scripts/documentation-file-ref-check cleandocs: + $(Q)rm -f $(YNL_INDEX) $(YNL_RST_FILES) $(Q)rm -rf $(BUILDDIR) $(Q)$(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/userspace-api/media clean