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 7779235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:35:58+00:00 2026-06-01T18:35:58+00:00

For example, my root Makefile is at ~/ , and I called a sub-Makefile

  • 0

For example, my root Makefile is at ~/, and I called a sub-Makefile at: ~/subdir/Makefile. How can I export environment variables from the sub-Makefile globally, to the current executing shell of my root Makefile?

  • 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-01T18:35:59+00:00Added an answer on June 1, 2026 at 6:35 pm

    As geekosaur noted, you can’t do it directly; a child process cannot modify the environment of a parent process.

    What you might be able to do is have the parent makefile include a file from the sub-directory which the makefile in the sub-directory also uses, and those settings are then, effectively, in the parent makefile.

    You can’t get make to export variables to your current shell at all; you’d have to have make run an interactive shell for you with the environment variables set — but that would be a very weird way of doing business.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can anybody show moe how to send from java ssh command ( example ssh
How can I use dynamic root route if it depends on... weather, or current
Why can't I set $_SERVER['DOCUMENT_ROOT'] as attribute? see example code class foo { private
How to take distinct nodes list in XML in c# for example <root> <node1
I need to generate XML in the following form: <ns1:root xmlns:ns1=http://example.com/xmlns1 xmlns:ns2=http://example.com/xmlns2> <ns2:item ns2:param=value
How to copy xml document skipping some top level nodes. For example: Input: <root>
Example: I have an class that inherits from UIImageView. An object creates an instance
I currently use string literals in my xpath expressions. For example: paragraphList = root.SelectNodes(paragraph);
For example: root.Nodes.Add(new TNode() { Foo1 = bar1, Foo2 = bar2, Foo3 = bar3
If for example I have defined a root linear layout whose orientation is vertical:

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.