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

                 Summary: .NOTINTERMEDIATE with no prerequisites is not
working
                 Project: make
               Submitter: masahiroy
               Submitted: Fri 25 Nov 2022 09:16:11 PM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.4
        Operating System: None
           Fixed Release: None
           Triage Status: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Fri 25 Nov 2022 09:16:11 PM UTC By: Masahiro Yamada <masahiroy>
The manual says: ".NOTINTERMEDIATE with no prerequisites causes all targets to
be treated as not intermediate."

I tested this on GMU Make 4.4, but it does not work as claimed.


[Test code]
%.a: %.b
        cp $< $@

%.b: %.c
        cp $< $@

.NOTINTERMEDIATE:


[Result]
$ touch x.c
$ make x.a
cp x.c x.b
cp x.b x.a
rm x.b



x.b was removed (as the effect of the chained rule).


BTW, ".NOTINTERMEDIATE: %.b" correctly suppresses the removal of x.b







    _______________________________________________________

Reply to this item at:

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

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


Reply via email to