From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id 187CB3858C98 for ; Wed, 20 Mar 2024 12:05:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 187CB3858C98 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gwmail.gwu.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gwmail.gwu.edu ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 187CB3858C98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::32a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710936352; cv=none; b=woF8St1i0HkDwUlwFOKUTaiNI4HQpWgg0zYORpkScH5e8/lTCQsvcTlbha9Yv7gFH/Qon50oheg7sByxvljuMaJhQbI4Eoi/Ic6Fm1F1v5SNQ4JS0YNJMdcTWrr/gVk83SGoiVHYqXtCCq7OAYg/tWaTbm76aj4XmEp0NRlEaLI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710936352; c=relaxed/simple; bh=aUF+J/RwuFYxJVU2WfqwRziVEqsgO7MDonpF3PHAm9Q=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=pMsBkjJXvrwEDXNf3dM7kPT5bFpSjCerioluhpvMEOxC6GrJY9vkW+n2VDRan+tjaSqoS2jE7PrMJ5XJndm4wAdNRoty6bkNkFT/PWDCmr+JIM7oYJxayc50S+RZt8TntVv4BvOGML8aEdoGHdXVQEncAx8Ja/p05YejOneIepw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6e50e8dcc72so3165470a34.3 for ; Wed, 20 Mar 2024 05:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gwmail.gwu.edu; s=google; t=1710936341; x=1711541141; darn=gcc.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hQvSUgxLDx+pF/fvybbt23Mr7LYDm7GG7ZpI8p0KnY8=; b=gdPsa5cGPvAuEug3is+2sZzssrABtHMNdLZrQYhaEH/isLVp86yUZfAwVHDTMVYVLj GhtJNxcchjQdCXAhpT8qKhTF2EXoqRDF2QDibo93LO1IOJl5j7cGVOTZbb/EAFYCAc/H hZ71XDmbuokW54aMKloBKBI1yHSOB5lrYs26/y90YKUNWX50W4uZtQUtwf7OAYESLTcM bUddhmaVblf9lHSV855HGhbkvC/Et9hMe5Z0Gmf8E1r82JGMXcSQVs9+ezeeA9Fy/F4V eJPY18IvgNZvfL7Bp9Sw225wVlB8BK/UScbvoPnlgr5irCeLWG9V7fMzbh8xosse1Qyf AJPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710936341; x=1711541141; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hQvSUgxLDx+pF/fvybbt23Mr7LYDm7GG7ZpI8p0KnY8=; b=uEhx0HEa2JUcak7DeK6JhiUWvvEepj/HStAjGcjJnxzaZkNZPWKtmWc6HqotItGt4L UFtXXMmNXwe4UrjMqMU4jZIyz+9+VkOplQN/6SGgPVgjWaDazmZAAoZCzVp6FpX+1l/U lkm3vAR291C2vE9O5XOj1TDkE7suoMr4LdCQfGusqbrLx27iVZ5fLPENweIyGR5hDAAe hXoWmS+lliMQw/P7BMzq0nygmu0Wg9HVERxzaaS3zO+KG8I2UtL/bHrTfa8lr7kaIjWU XnU+7+JczxDWawpQ/huynf6e1zmHXSUjQWlM8HqY5CwD2YGBvU2H5LRI2R6mpFMAbIN6 JUnA== X-Forwarded-Encrypted: i=1; AJvYcCUytkZrr498c8cW81muo8KRWiXE/9cl/S/N/TLeO4y1AbzxGOFHJ1vnvcEX3b+5Xxxcq4AL/LBu9ZPQbkf2FAs= X-Gm-Message-State: AOJu0YzxLp2v80tuZmXacJeZknsxLXXu4qZG3XylBHOEmgHQs5IwJSh/ HB234s1y65GlI+4w9qCpvabI16YmCkvPR61Dmax05JivTSllo79D14EZG2sictdOt1HJfMoOc0M pJBpS8OIdvvoWBEMsCfmSidk/Pz0RkY7hwrp5 X-Google-Smtp-Source: AGHT+IHZpp1js55+pU8vu2I54IXpgNYwqbw7qXLuKGl2zqPB43O9hcF02I3+wFYVHCBEBCFOkNI+E+FcIBa2354OhcQ= X-Received: by 2002:a05:6808:3c87:b0:3c3:9c24:9262 with SMTP id gs7-20020a0568083c8700b003c39c249262mr4366905oib.16.1710936341299; Wed, 20 Mar 2024 05:05:41 -0700 (PDT) MIME-Version: 1.0 References: <20240313080237.1143034-1-christophe.lyon@linaro.org> <1eb529f2-3842-4090-a8e2-f713a28f2394@simark.ca> <87bk7agktz.fsf@tromey.com> In-Reply-To: <87bk7agktz.fsf@tromey.com> From: Eric Gallager Date: Wed, 20 Mar 2024 08:05:29 -0400 Message-ID: Subject: Re: [RFC] add regenerate Makefile target To: Tom Tromey Cc: Christophe Lyon via Gdb , Simon Marchi , Christophe Lyon , binutils@sourceware.org, gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,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 server2.sourceware.org List-Id: On Tue, Mar 19, 2024 at 2:10=E2=80=AFPM Tom Tromey wrote: > > > not sure if the current autoregen.py is in sync with that? > > I'm curious why "autoreconf -f" is insufficient. > It seems to me that this should work. `autoreconf -f` works fine in individual subdirectories, the problem is that the top-level configure.ac doesn't use the AC_CONFIG_SUBDIRS macro to specify its subdirectories, but rather uses its own hand-rolled method of specifying subdirectories that autoreconf doesn't know about. This means that autoreconf won't automatically recurse into all the necessary subdirectories by itself automatically, and instead has to be run manually in each subdirectory separately. Also the various subdirectories are inconsistent about whether they have a rule for running it (autoreconf) from the Makefile or not, which usually comes down to whether the subdirectory uses automake for its Makefile or not (the top-level Makefile doesn't; it uses its own weird autogen-based regeneration method instead, which means that it misses out on all the built-in rules that automake would implicitly generate, including ones related to build system regeneration). > > > Also... I discovered the existence of an automake rule: > > am--refresh which IIUC is intended to automake the update of Makefile > > and its dependencies. > > Don't use that rule directly. It's an implementation detail and > shouldn't be relied on. > > thanks, > Tom