From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id 01DB53858CD1 for ; Wed, 20 Mar 2024 12:05:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 01DB53858CD1 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 01DB53858CD1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::235 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710936344; cv=none; b=ozfxbuWBquz52M5rt2uCW7+TfXJ8hbOr1k94meKYudHeB/cpRGBZ2/nG/YaPEyYqV6ujkxoMdEoJdXIueXAtrUxROjCgsi00YhXBpqDr/PGGDbCq/zjZkhO/z1FQyqBSUyrVte+dd+TvnWtFGXokWY0jbt9UqAsOU3DioaaqQDk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710936344; c=relaxed/simple; bh=aUF+J/RwuFYxJVU2WfqwRziVEqsgO7MDonpF3PHAm9Q=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=G0E69fvdRXvgzbl5YlECl5S2Zt8xaaT2B1hLFz3qbVowt4bCtxIqnS0viMkiveujVZIyez6itNgIeDZIAuWDspS+uzrQ3K9NMHlxNmf2OyxOmJ+EWgh2X4eIvWCY0HpYjjo0zhOW/d4ESggokyIy0zih/gzwl9mlnobBoScv0sc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3c39bc142edso931614b6e.0 for ; Wed, 20 Mar 2024 05:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gwmail.gwu.edu; s=google; t=1710936341; x=1711541141; darn=sourceware.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=CyozZrPFByF2KpZdOUJCJvJT1wGAiJ855h8hYWSsx+5es8V7niToAA8x3D+oGZDMNa iD3YMGs51EqLzw/ENga40Nk0fqvEhIWMTZANd82ZQ+L1dWwvMUkVhLt9JWMeV638r3oV drqOEZqd5izc0o+bmdyfZumwjbVOD155SuG1/TxsKO8AelnPKRv+KuWL09im/yrKRzOJ 0gaPUVDgB0IMXnLm1ICHyxF6Wy7aoZy+n8ouvbV/r7lzAFk3IBfoBWFzVCySIlmYTYPq Lpfd4cTrRTydEsnupw1qd/1ZoChDnrM7naIDmB/VrGC2l48n5Cuu6zyvA8zdkvNkrhlV yM1w== 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=MYLJrBx2VMB7BsJxhS0ZIXUgwqqTysrN6PYeX2JbLT3MunwcAnCm7JFhop+LmhEWTG ZOU5AToVxgFgcaWdm1TqcO9aXulIa5io10EXoMOObluN3WlQWV30dtsyznIjE/LHhr+T sZBpHsxhhhqV03iPcz5DkXn0HDwGS7w77acvK8hkDv+CqnqDlaPwZIU9R95y2UAiZVy6 NE2ATPjeYlzrCQ5VcHH3Ga0NLpjPBy9sq929UTTQmnaC9uUQhkk0sob9am3cDjLuIZEx +/NDGnZk6r9OneEgfKL7OFOij8GGxiGmCaC9B91DwW/GZlUNqLHAj59ip9HqQk9xa2fa K0vA== X-Forwarded-Encrypted: i=1; AJvYcCXteQjIrPXqJpLmbI7HWNRglZEE97+4JwUhGRWtOHr5cFkGOfmstYm5df2rfTP9Aux061RmJbF1umzNLxNu9t841ZkDJ1J3bQ== X-Gm-Message-State: AOJu0YwZSq8hd7iMQDhRaDe0shZNc4kRyrD+5YGmFnriT2T0okql5kkO k5PNmqmjHP4trMy3ClY8wNp1ZmJSBtucoPNO2SK4SNSlOMM69tWvLoskkVDAdhO/OOw9qnxaEnf X2nWoNPEQgR2YzYp+wIPKx6jJ9VxoTwElbzTw 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=-2.0 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