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

                 Summary: MAKEFLAGS with only variable settings X=y does not
work properly
                 Project: make
            Submitted by: rbless
            Submitted on: Montag 07.07.2008 um 13:04
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.81
        Operating System: POSIX-Based
           Fixed Release: None

    _______________________________________________________

Details:

If you call make with a variable override X=y it will
not be propagated correctly to other Makefiles:

make TARGET=success
will lead to
make -f Makefile.sub -$(MAKEFLAGS)
being expanded into
make -f Makefile.sub -TARGET=success

but using
make -w TARGET=SUCCESS
will correctly expand to
make -f Makefile.sub -w -- TARGET=SUCCESS

See attached Makefiles as an example
make TARGET=success 
fails badly, whereas
make -w TARGET=success
succeeds. To my understanding
make TARGET=success
should expand "make -f Makefile.sub -$(MAKEFLAGS)" to
make -f Makefile.sub -- TARGET=success

Platform: Linux, Ubuntu 8.04, make -v
GNU Make 3.81




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Montag 07.07.2008 um 13:04  Name: Makefile  Size: 88B   By: rbless
Makefiles for demonstrating the bug.
<http://savannah.gnu.org/bugs/download.php?file_id=16017>
-------------------------------------------------------
Date: Montag 07.07.2008 um 13:04  Name: Makefile.sub  Size: 128B   By: rbless
Makefiles for demonstrating the bug.
<http://savannah.gnu.org/bugs/download.php?file_id=16018>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to