bugmake - Bugs: bug #15492, Intermediateness of multiple...

 
 

bug #15492: Intermediateness of multiple targets in pattern rules

Submitted by:  None
Submitted on:  Fri 20 Jan 2006 08:15:54 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 3.81Operating System: POSIX-Based
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

 Spam posted by sevanath
Fri 20 Jan 2006 08:15:54 PM UTC, original submission:

# The question is whether %.intermediate2 should be marked as
# an intermediate target automatically without adding it as a
# prerequisite of .INTERMEDIATE.
#
# Since %.intermediate1 is marked as intermediate and since
# pattern rules with multiple targets are defined as generating
# all targets after execution, I believe that %.intermediate2
# should receive the same treatment as %.intermediate1 and be
# marked as intermediate.
#
# To see the basic behavior, simply run make with this file
# named as "Makefile".
#
# Run 'make set-intermediate=t' to see the behavior I expect
# to see by default: both %.intermediate1 and %.intermediate2
# are deleted by make.

name := test

all: $(name).final

%.final: %.intermediate1 %.intermediate2
cat $^ > $@

$(if $(set-intermediate),$(eval .INTERMEDIATE: $(name).intermediate2))
%.intermediate1 %.intermediate2: %.source
head $< > $*.intermediate1
tail $< > $*.intermediate2

%.source: Makefile
cp $< $@

.PHONY: clean
clean:
rm -f $(name).*

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #2157:  Makefile added by None (995B - text/plain - Makefile with tabs (hopefully) preserved)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (Updated the item)
  • -unavailable- added by sevanath (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 09 Oct 2013 04:49:23 AM UTCpsmithComponent Version4.0=>3.81
    Fri 20 Jan 2006 08:15:54 PM UTCNoneAttached File-=>Added Makefile, #3297

    Back to the top


    Powered by Savane 3.1-cleanup1