URL:
  <https://savannah.gnu.org/bugs/?68693>

                 Summary: '-t' does not follow the grouped target build
semantic
                   Group: make
               Submitter: escapade2938
               Submitted: Thu 10 Sep 2026 11:38:46 AM UTC
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Unlocked
       Component Version: 4.4.1
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 10 Sep 2026 11:38:46 AM UTC By: Mateusz Lesny <escapade2938>
Hi, I have noticed the issue in v4.4.1 which comes with Ubuntu LTS 26.04, but
it must be related to the change in v4.4.

Consider the following Makefile:


build : foo
    ./generate_build foo

foo bar &:
    ./generate_foo_bar


Now call:


$ ls
Makefile
$ make -t build
touch foo
touch build

$ make build
./generate_foo_bar
./generate_build foo


After make-touching 'build' I would expect it to be up-to-date, which should
be also seen by the subsequent make-call.

Possible reason: The build of grouped targets consideres all grouped targets
even when not requested, '-t' does not. As 'bar' is missing after 'make -t
build' , 'make build' executes the grouped-targets-recipe updating 'foo' as
well as rebuilding 'build'.

As both results are not consistent anymore, this seems to be a bug.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68693>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to