Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7903813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:50:28+00:00 2026-06-03T09:50:28+00:00

I am trying to parse some Makefile files to read some configs them them

  • 0

I am trying to parse some Makefile files to read some configs them them and I encountered a wide range of expressions like:

AAA := Some, text
BBB_NAME := @AAA@ (c)
CCC = value
DDD = Some other $(CCC) xxx

I would like to know if all of these are valid and what if there is any difference between them (so I can properly parse them).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:50:29+00:00Added an answer on June 3, 2026 at 9:50 am

    They are all valid, as you can tell by putting them in a Makefile and running it. If you want to know what values they actually take, you can try

    $(info $(AAA))
    

    (Note that the only real problem is with the (c) in BBB_NAME, it can cause problems if you pass it into other functions.)

    The one tricky part is the difference between = and := (and other assignment operators). Full details are in the manual, but basically := evaluates the right-hand side at once, while = holds off until the left-hand side is evaluated somewhere. Consider

    CCC = value
    DDD := Some other $(CCC) xxx
    EEE = Some other $(CCC) xxx
    

    The value of DDD is now Some other value xxx, while the value of EEE is Some other $(CCC) xxx. If you use them somewhere:

    $(info $(DDD))
    $(info $(EEE))
    

    Make expands $(DDD) and $(EEE) to the same thing and you see

    Some other value xxx
    Some other value xxx
    

    But there are differences:

    CCC = value
    DDD := Some other $(CCC) xxx
    EEE = Some other $(CCC) xxx
    
    DDD := $(DDD) and yyy   # This is perfectly legal.
    EEE := $(EEE) and yyy   # Infinite recursion. Make will not allow this.
    
    CCC = dimension
    
    $(info $(DDD))          # Produces "Some other value xxx and yyy"
    $(info $(EEE))          # Produces "Some other dimension xxx"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to parse some text and diagram it, like you would a
I am trying to parse some text files into a database and there is
I'm trying to parse some UTF-8 encoded html text that contains the left and
I'm trying to parse some Text with parsec: data Cmd = LoginCmd String |
I'm trying to parse some data in a fixed format text file where each
I've been trying to parse some huge XML files that LXML won't grok, so
I'm trying to parse some XML (html) I downloaded using WebRequest.Create() and then read
I'm trying to parse some text using PyParser. The problem is that I have
I'm trying to parse some bbc code like this: [item=1]a[/item] [item=2]b[/item] [item=3]c[/item] I'm able
I am trying to parse some HTML snippets and want to clean them up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.