bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #52017] Multiple intermediate pattern targets badly managed


From: anonymous
Subject: [bug #52017] Multiple intermediate pattern targets badly managed
Date: Thu, 14 Sep 2017 09:48:51 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?52017>

                 Summary: Multiple intermediate pattern targets badly managed
                 Project: make
            Submitted by: None
            Submitted on: Thu 14 Sep 2017 01:48:50 PM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.2.1
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

I have a Makefile using pattern rules with multiple targets. Some of the
targets are intermediate, and used on other targets.

GNU make does not identify those files are intermediate: it does not remove
them after building the targets, and it rebuild everything if they are
deleted.

In order to test the provided MWE, please execute:

make source

which will create the example source files.

In the provided MWE, if you execute:

make

(or make all)

this will create an intermediate file my.int. This file will not be deleted
after make has finished. If you delete the file manually, next execution of:

make

will rebuild everything.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 14 Sep 2017 01:48:50 PM UTC  Name: Makefile  Size: 145B   By: None
MWE
<http://savannah.gnu.org/bugs/download.php?file_id=41803>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52017>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]