From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by sourceware.org (Postfix) with ESMTPS id C97913851C17 for ; Sat, 20 Jun 2020 01:33:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C97913851C17 Received: by mail-ej1-x62e.google.com with SMTP id w16so12197222ejj.5 for ; Fri, 19 Jun 2020 18:33:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9HhhL2qOe/9S2/7w47zeKXaGWYfxmfAk3NmbXYYTGe4=; b=qHrsZcrSZ/iXvkDMBpOmIIpXXcKS1A0ZFszH6ZELYRbPyDlxsooVttR2dylFTdFnXj MWQnRG76fFirUxlxYj2R5BnR+PFtuahUXbkKpL0sGi27gdMck34wpkZX/33QJzeGS9rM 2hZwZKfNFuTsle0Usp8Qq48F5DyESOFj+9eqKjtODbIow+xRwYsSB/Ci+A2K09rAhj4X TZfZPBlRLEOl9EbIJ6xNC/c31Rfbz4xcBE1CqssyJ2aEn93J1KgpWsUbK82JYr3ezKRG a3K3PjsUgZqiWjX9BBxpFuhxNv9PSoiT7GGD/+TBkKOj1DUJP156kFfAK6ccIODOuzvq kP4g== X-Gm-Message-State: AOAM530P6M/0ybnUTv5hqD9VPzZZZ/thbXCUGUWevcVZ3f4tjroVaFM3 nSQ58GPsNZmCzo+Cr6Nzn7CfB2Y8eXw+POtzgMcbwvJl X-Google-Smtp-Source: ABdhPJwj+osjYNQ9pjHgsQ9OiyCJDO8tcNaiihRJ8p7YRyMPZpRul6Bb0PuQR4IedPo9UE87+v2eLF2Zziw0HTxt2BI= X-Received: by 2002:a17:906:f53:: with SMTP id h19mr5684549ejj.491.1592616801448; Fri, 19 Jun 2020 18:33:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:5311:0:0:0:0:0 with HTTP; Fri, 19 Jun 2020 18:33:20 -0700 (PDT) From: Budi Date: Sat, 20 Jun 2020 08:33:20 +0700 Message-ID: Subject: g++ option -MM -MF afile is not the same as -MM > afile if inside makefile To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jun 2020 01:33:23 -0000 Why the result of g++ option -MM -MF afile is not the same as -MM > afile if inside makefile with VPATH defined somehing? The first is defected i.e. incorrect and incomplete as opened/printed out by cat afile, but so confusing is how come the process is not affected at all i.e. it finish the job perfectly the same ? Please help explain this behavour !