URL: <http://savannah.gnu.org/bugs/?35336>
Summary: Altering MAKEFLAGS doesn't correctly alter the behavior of make Project: make Submitted by: phantal Submitted on: Fri 20 Jan 2012 08:01:03 AM GMT Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 3.82 Operating System: Any Fixed Release: None Triage Status: None _______________________________________________________ Details: To verify this, I ran 3 separate tests: * Test 1: ** Flags used: -p, entered from the command-line * Test 2: ** Flags used: -Rrnp, entered from the command-line * Test 3: ** Flags used: -Rrnp, added to MAKEFLAGS in a makefile In each case, I ran: gmake > testN.txt ... then compared them using meld. Other than adding to MAKEFLAGS in test 3, the makefile was empty. The results were thus: * Test 1: This had the most rules/variables (as you might expect) * Test 2: There were no default-rules, and the variables emitted appear to be variables that are part of make's functionality * Test 3: There were fewer default rules & variables than test #1, but the number of rules and variables that were emitted far exceeded the number that weren't emitted. Along these lines, but perhaps only cosmetic: You get different output if you pass -p on the command-line -vs- adding it to MAKEFLAGS. I've attached 4 logs demonstrating these issues. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Fri 20 Jan 2012 08:01:03 AM GMT Name: minusp_cmdline.txt Size: 24kB By: phantal <http://savannah.gnu.org/bugs/download.php?file_id=24849> ------------------------------------------------------- Date: Fri 20 Jan 2012 08:01:03 AM GMT Name: Rrnp_cmdline.txt Size: 6kB By: phantal <http://savannah.gnu.org/bugs/download.php?file_id=24850> ------------------------------------------------------- Date: Fri 20 Jan 2012 08:01:03 AM GMT Name: minusp_invar.txt Size: 24kB By: phantal <http://savannah.gnu.org/bugs/download.php?file_id=24851> ------------------------------------------------------- Date: Fri 20 Jan 2012 08:01:03 AM GMT Name: Rrnp_invar.txt Size: 23kB By: phantal <http://savannah.gnu.org/bugs/download.php?file_id=24852> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?35336> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make