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

                 Summary: Adding variable assignment and new rule in else,
break execution.
                 Project: make
            Submitted by: javier4
            Submitted on: gio 19 mag 2016 13:10:54 GMT
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: None
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

A makefile working with make 3.82 gives an error with 4.1

This is a simple test-case

ifneq ($(FOO),yes)
foobar:
else
BAR = bar
foobar:
endif
        @echo one


3.41

$ make
Makefile:7: *** recipe commences before first target.  Stop.

$ make FOO=yes
one



3.82

$ ~/bin/make-3.82
one


This is the complete answer of the guy who identified the problem
http://stackoverflow.com/a/37306577/6350583




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Messaggio inviato con/da Savannah
  http://savannah.gnu.org/


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

Reply via email to