Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2504822rdb; Mon, 20 Nov 2023 12:44:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqSnXsDdjgMcW+uIyWp7WhruHZFmucDi8TNK61d5Pt0ocae3kGEJzImLmr/De53gRxuxFM X-Received: by 2002:a17:902:eb53:b0:1cc:20ec:d3bb with SMTP id i19-20020a170902eb5300b001cc20ecd3bbmr7175735pli.40.1700513053846; Mon, 20 Nov 2023 12:44:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700513053; cv=none; d=google.com; s=arc-20160816; b=kxH697PyKPPypLjdBa98zq5VQbasUbrFIn/cpykvXgUunYcQGtEVF4QUAtkYwizRuX 8zNEzE1P37A3Yo0KNwM2NmaVYYVbyE8yvjd1kKvzlAz7SkUZVptBM9O6qdcBCM7wnv+M OJ72cy+oEcIOVdGoCa46QcNM/+8NhI8rICGEghKhU9YtBp6xIm/b4eO4Nn5WRHEIyV1e g+ipCZtIu4bk5WlxC5q1z5eeeDbn6Pgl9egK0AT77G4N8UPmPutZ6YjgDPfYBfKIPkZh XykEN8EbJqJbUJjMILu0+MTR2pnR25R7pJttCgsx2l3amAzvcLzYxgGEJhSxnxLQlJFn /cHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YMxDFRBVGQxAcyd/h/e01Uqtt9vCU82wNeM940Cvh0U=; fh=+aLOTbjmpXY3XIXTi669IRRUKQd5ILEDDqbNf7f5HtM=; b=gOuKtwAf2bnPh58vXaHOPG4hLPbE1nAm/Hf8Uzr73iqbnXmD1QTIavP51TlfwzoQjS t7/ZXaoVOspDIQhcj5fHb4lA5ipEzbU5xZ387bia+RM5pyXVGO47JJ7q1j/Qg5Xfr4Rp +4E5j7LfZ8Xjh6w5SsPIL6mhEh+P6ezpGwkcjfBmYbvp2L2R2920ZoV9dmaXzjZw1iBN ntnsK+eqNb9IrUTvgl7HA/EOHYoGSx4y5FCXN/Nl3QBjWFTPNJmC5LuTDeUKLIAY21rs Q5ngmRz9B2+45PcHA6rnvkvkCyEBvF47xuzLZRb/nWQodbbQoCfDr0YJ5FyeI4SxrY2Y sRTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id t9-20020a170902e84900b001bbd70bdffbsi9146875plg.440.2023.11.20.12.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 12:44:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6F0A78090FAA; Mon, 20 Nov 2023 12:43:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230313AbjKTUnV (ORCPT + 99 others); Mon, 20 Nov 2023 15:43:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjKTUnT (ORCPT ); Mon, 20 Nov 2023 15:43:19 -0500 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67499CF; Mon, 20 Nov 2023 12:43:15 -0800 (PST) Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a013d22effcso34415466b.2; Mon, 20 Nov 2023 12:43:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700512994; x=1701117794; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YMxDFRBVGQxAcyd/h/e01Uqtt9vCU82wNeM940Cvh0U=; b=XHPmiDmYFm56ataY0Pw+ZGCAkVb//0uheiX4SSy4PzrLsoHHkcXrpWZ2hzVYW8jmwK V9a61HTgqfr0iZRQJHS9ztLf6tFxO6DR/58DtucDqKzmNZqgCpIR7RDKfI+ggyi5MIUo 9oDr91k8MaNlXsI1jrPzm+wJQuFtGemUkjecRe5+gJJ+S8vmQkZbVGmBvjgkqvK5hhNk JExjT/qn3S4U1cDUKLsr5RLtYhAquW2o1dN1vptRdxOGFU06S9ri1UYdChzRcaLuAc5u jJ7ixHxuy5W9uhoUemftyU/NosMhXWI9gpIT1k8A2e0BRtzYzVTOOFxblFOl70YapNGh 8Gdw== X-Gm-Message-State: AOJu0Yzlk5xmlJMg1IpPM/NVKeoKJUYGRf1vPLe1WRN8/4S+PQ7/DgbM 21qOTNYAtUOlXcp5AL+Cvys= X-Received: by 2002:a17:906:19c:b0:9e3:fbab:e091 with SMTP id 28-20020a170906019c00b009e3fbabe091mr6427990ejb.15.1700512993651; Mon, 20 Nov 2023 12:43:13 -0800 (PST) Received: from gmail.com (fwdproxy-cln-022.fbsv.net. [2a03:2880:31ff:16::face:b00c]) by smtp.gmail.com with ESMTPSA id cm42-20020a170906f5aa00b009fcf829d84csm1992395ejd.169.2023.11.20.12.43.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 12:43:13 -0800 (PST) Date: Mon, 20 Nov 2023 12:43:11 -0800 From: Breno Leitao To: Jakub Kicinski Cc: leit@meta.com, Jonathan Corbet , netdev@vger.kernel.org, donald.hunter@gmail.com, linux-doc@vger.kernel.org, pabeni@redhat.com, edumazet@google.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] Documentation: Document each netlink family Message-ID: References: <20231113202936.242308-1-leitao@debian.org> <87y1ew6n4x.fsf@meer.lwn.net> <20231117163939.2de33e83@kernel.org> <20231120120706.40766380@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231120120706.40766380@kernel.org> X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,FSL_HELO_FAKE, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 20 Nov 2023 12:43:28 -0800 (PST) On Mon, Nov 20, 2023 at 12:07:06PM -0800, Jakub Kicinski wrote: > On Mon, 20 Nov 2023 11:55:26 -0800 Breno Leitao wrote: > > I am not planning to do it, since I would like to trust Make. Let me > > know if you think this is important and I can do it also. > > Makefile is good enough for me. > > > +$(YNL_INDEX): $(YNL_RST_FILES) > > + $(YNL_TOOL) -x # Generate the index > > + > > +%.rst: $(YNL_YAMLS_FILES) > > + $(YNL_TOOL) -i $(patsubst %.rst,%.yaml, $(@F)) # generate individual rst files > > IDK what @F means, can the tool take one file at a time and then > we can make the rule a more usual: '$(@F)' is the file-within-directory part of the file name of the target. If the value of ‘$@’ is dir/foo.o then ‘$(@F)’ is foo.o. ‘$(@F)’ is equivalent to ‘$(notdir $@)’. > %.rst: $(YNL_YAML_DIR)/%.yaml > $(YNL_TOOL) -i $< -o $@ That is basically what it does now in the current implementation, but, you don't need to pass the full path and no output file, since it knows where to get the file and where to save it to. If you are curious about the current python script, I've pushed it here: https://github.com/leitao/linux/blob/netdev_discuss/tools/net/ynl/ynl-gen-rst.py I can easily remove the paths inside the python file and only keep it in the Makefile, so, we can use -i $< and -o $@.