URL: <https://savannah.gnu.org/bugs/?64185>
Summary: *** only one 'else' per conditional. Stop. due to else in recipe Group: make Submitter: harryc Submitted: Fri 12 May 2023 02:04:16 AM UTC Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 4.4.1 Operating System: None Fixed Release: None Triage Status: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Fri 12 May 2023 02:04:16 AM UTC By: Harry Clauson <harryc> Please see attached makefiles. As provided, they should work correctly as follows: cmd: make -fmakefile.start makefile.start:1: including makefile.start ver 4.4.1 goals makefile.blah:2: blah = 1 goals: makefile.blah:6: begin blah pass makefile.blah:30: end of blah makefile.start:10: end of start echo "target help" target help However, if you uncomment makefile.blah, line 15, make sees the else statement in the 'junk' recipe as part of the conditional. This is odd as that line is simply a $(warning ...) logging call. These were complex makefile which worked find until the $(warning ...) call was inserted ahead of the else statement. I simplified them as much as possible and still reproduce the error. This happens with make-4.4.1 build on aix: cmd: make --version GNU Make 4.4.1 Built for powerpc-ibm-aix7.2.5.0 Copyright (C) 1988-2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. My workaround is to comment out the particular $(warning ...) call. Thank you for any assistance! _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Fri 12 May 2023 02:04:16 AM UTC Name: makefile.start Size: 173B By: harryc <http://savannah.gnu.org/bugs/download.php?file_id=54731> ------------------------------------------------------- Date: Fri 12 May 2023 02:04:16 AM UTC Name: makefile.blah Size: 404B By: harryc <http://savannah.gnu.org/bugs/download.php?file_id=54732> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?64185> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/