From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by gnuweeb.org (Postfix) with ESMTPSA id 94AF97E6CA for ; Tue, 8 Mar 2022 23:06:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1646780812; bh=q/THvieLIn+NlZJB+R6Zj7xoHCZ/pOVxkbJkKpZHTa4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dNa82cPoYQQl587rfBh7+blriRSm2oyhR1BP2c44VNHI4QWtGe8/5KvFfoC6H8Hqw SPP0MfWEG0At4dS52IXA0T2DNcpzXngpadvs2MsaltWcHs5ZAmmIRBBaIwEG2Fs6DW WHLdUHxqAhD7ydecT/rmX+DGyCXA/NDqg0GqfZhZ2dlfpYGx0j6Pb4HrBS0kwmJGU2 X7iyTLZr+wMvu90JetZeFE5i3BKcbX6o1jbiU+2U7qHotcUrADVvLS+W3ESsOSYAGJ a5MS5MrgzuLREEU+duOiMNR7jZnZ9GXaxHAoGMUw39dfsVJ+8mKfFDeIewrTliIy/L re6i9jDrduBog== Received: by mail-lf1-f52.google.com with SMTP id w12so645901lfr.9 for ; Tue, 08 Mar 2022 15:06:52 -0800 (PST) X-Gm-Message-State: AOAM533/bsCWfV8LSmAZTJ0Jt/bKRHx4BZA46UJ8tubJsnVTvBhr5pTu g393qt2frhRUILfpWn4NsReF+fOdIEbXU1w6KXE= X-Google-Smtp-Source: ABdhPJwhRgTimXVxQbLnA3Mu8IGg7NAKk9iszdsU/V7H5ovBoApQeNHN8ExTIs/6TDeGfblfFqnDyYvsXOcMjrjkRR0= X-Received: by 2002:ac2:424f:0:b0:448:4df1:77bf with SMTP id m15-20020ac2424f000000b004484df177bfmr793381lfl.70.1646780810526; Tue, 08 Mar 2022 15:06:50 -0800 (PST) MIME-Version: 1.0 References: <20220308224002.3814225-1-alviro.iskandar@gnuweeb.org> <20220308224002.3814225-3-alviro.iskandar@gnuweeb.org> In-Reply-To: From: Alviro Iskandar Setiawan Date: Wed, 9 Mar 2022 06:06:38 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH liburing 2/2] src/Makefile: Add header files as dependency To: Ammar Faizi Cc: Jens Axboe , Pavel Begunkov , io-uring Mailing list , "GNU/Weeb Mailing List" Content-Type: text/plain; charset="UTF-8" List-Id: On Wed, Mar 9, 2022 at 5:52 AM Ammar Faizi wrote: > This is ugly, it blindly adds all of them to the dependency while > they're actually not dependencies for all the C files here. For > example, when compiling for x86, we don't touch aarch64 files. > > It is not a problem for liburing at the moment, because we don't > have many files in the src directory now. But I think we better > provide a long term solution on this. > > For the headers files, I think we should rely on the compilers to > generate the dependency list with something like: > > "-MT ... -MMD -MP -MF" > > Then include the generated dependency list to the Makefile. > > What do you think? Yes, I think it's better to do that. I'll fix this in v2. thx -- Viro