bugmake - Bugs: bug #30809, Documention for "6.8 Defining...

 
 

bug #30809: Documention for "6.8 Defining Multi-Line Variables" indicates to use "define VARIABLE ="

Submitted by:  None
Submitted on:  Thu 19 Aug 2010 03:53:35 AM UTC  
 
Severity: 3 - NormalItem Group: Documentation
Status: Not A BugPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
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.

 

Thu 19 Aug 2010 04:13:37 AM UTC, comment #1:

The documentation online is for the latest version of GNU make, which is (currently) version 3.82. The features described in that manual for that version of GNU make.

If you're using an earlier version of GNU make, such as GNU make 3.81, then your version may not have all the features and capabilities described in the online documentation.

You should consult the version of the GNU make manual that comes with the version of GNU make that you're actually using: that will give you the appropriate content for that version.

Paul D. Smith <psmith>
Project Administrator
Thu 19 Aug 2010 03:53:35 AM UTC, original submission:

I was attempting to learn how to use multi-line variables for functions, when I ran into a problem. The same function written as a single line (with ';' between the commands) would work, but when written as a multi-line variable using 'define' it would not.

I was following the example given at
http://www.gnu.org/software/make/manual/make.html#Multi_002dLine

Which indicated to do something like
define variable =
echo line1
echo line2
endef

However this would only work if I removed the '='.

I wanted to point this out in case the documentation was in error in indicating to use a '='.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (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
    Thu 19 Aug 2010 04:13:37 AM UTCpsmithStatusNone=>Not A Bug
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1