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

  • SEARCH
  • Home
  • 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 6232503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:07:41+00:00 2026-05-24T10:07:41+00:00

I have a makefile, where i am exporting variables which will be received by

  • 0

I have a makefile, where i am exporting variables which will be received by an executable, but surprisingly the executable is not receiving the exported values.

Please help me.

31 test:
32         @ echo
33         @ echo "Testing Electric Fence."
34         @ echo "After the last test, it should print that the test has PASSED."
35         ./eftest
36         ./tstheap 3072
37         export EF_ERRTRACK_START=3
38         export EF_ERRTRACK_END=5
39         ./time-interval-measurement-test
40         @ echo
41         @ echo "Electric Fence confidence test PASSED." 
42         @ echo

time-interval-measurement-test is an executable (C program) which should receive the exported variables, but it is not getting. Please help me.

  • 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-05-24T10:07:41+00:00Added an answer on May 24, 2026 at 10:07 am

    If I’m not mistaken each line in a Makefile is a separate shell-process. So shell-export does not work for several processes: One way to do it is to put them into one line:

    test:
             @ echo
             @ echo "Testing Electric Fence."
             @ echo "After the last test, it should print that the test has PASSED."
             ./eftest
             ./tstheap 3072
             EF_ERRTRACK_START=3 EF_ERRTRACK_END=5 ./time-interval-measurement-test
             @ echo
             @ echo "Electric Fence confidence test PASSED." 
             @ echo
    

    or line-break-escaped with ‘\’

    test:
            [..]
            EF_ERRTRACK_START=3 \
            EF_ERRTRACK_END=5 \
            ./time-interval-measurement-test
    

    Like that the ENV-variables are available to ./time-interval-measrument

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

Sidebar

Related Questions

I have a Makefile.am which will be responsible for building a final application binary:
I have a Makefile , that has variables version and build (those are not
i have created a Makefile which i would change so, that it will generate
We have a Makefile which runs on a Windows 2003 machine and we are
I have a Makefile from which I want to call another external bash script
So, I have a Makefile which runs different commands of how to build S/W.
I have a makefile structured something like this: all : compile executable clean :
I have a makefile (provided by third party) which gives the following error Makefile:108:
I have a Makefile that I use to build executable on mac os x,
I have a makefile which runs commands that can take a while. I'd like

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.