From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Vk4HEEMVyWBgcgAAWB0awg (envelope-from ) for ; Tue, 15 Jun 2021 17:01:55 -0400 Received: by simark.ca (Postfix, from userid 112) id 329491F163; Tue, 15 Jun 2021 17:01:55 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 7E4691E939 for ; Tue, 15 Jun 2021 17:01:54 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 232DD3894415 for ; Tue, 15 Jun 2021 21:01:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 232DD3894415 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1623790914; bh=+npUiq8gu70T8A9uRm3V/nTE7RJ5ghwITFqhFH9mpLs=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=GRaP44Q+ZpYKEnFZptv/y4U60/PtIffzewEYCxy/aqOV8qu8phIKWTvhunuNW5Ray RnBOZibLkksCOOsoPkKpT/HxnHWqFLUbd7m1FcZD5/AvzKMxuiLHSAF0hsML+IMblE nyFazvqIeFyRpNz+YBPhaXbGDFa8HxZ8ixz/ZcBQ= Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 414843851C29 for ; Tue, 15 Jun 2021 21:01:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 414843851C29 Received: from vapier (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 07AFF340E13; Tue, 15 Jun 2021 21:01:32 +0000 (UTC) Date: Tue, 15 Jun 2021 17:01:31 -0400 To: Tom Tromey Subject: Re: [PATCH] sim: switch modules.c & version.c to stamp files Message-ID: Mail-Followup-To: Tom Tromey , Mike Frysinger via Gdb-patches References: <875yzt9cij.fsf@tromey.com> <20210615003949.6507-1-vapier@gentoo.org> <87a6nqgabf.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87a6nqgabf.fsf@tromey.com> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Cc: Mike Frysinger via Gdb-patches Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 15 Jun 2021 14:08, Tom Tromey wrote: > >>>>> "Mike" == Mike Frysinger via Gdb-patches writes: > > Mike> This fixes remaking of these files and avoids unnecessary rebuilds. > > Mike> # See sim_pre_argv_init and sim_module_install in sim-module.c for more details. > Mike> -modules.c: Makefile $(SIM_OBJS:.o=.c) > Mike> +modules.c: stamp-modules ; @true > Mike> +stamp-modules: Makefile $(SIM_OBJS:.o=.c) > > I didn't look at how the .c file is handled, but if 'make clean' removes > it, then it ought to remove the stamp file as well. neither are in the clean target atm. going by the standards page, it sounds like they should. https://www.gnu.org/prep/standards/standards.html#Standard-Targets -mike