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

The Archive Base Latest Questions

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

Working under linux for our developement, I have an Eclipse Makefile C Project and

  • 0

Working under linux for our developement, I have an Eclipse Makefile C Project and I’m trying to override the make command with this so that a custom script I have will run before make to setup additional variables (easier to keep one script in sync than overriding multiple individual project env variables all the time)

Make command: ./setenv.sh && make

Script contents for testing

#!/bin/sh
echo "setenv.sh"

When running this in Eclipse (build project) I see the script output, but make seems to never get called after the script completes. Perhaps I’m missing something and the script requires a return value of some sort and after running it it returns “false” and the chain doesn’t go on but I couldn’t find anything online in my searches on how to get this working.

Note: This is on Eclipse 3.5 Galileo

Thanks

  • 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-01T05:35:40+00:00Added an answer on June 1, 2026 at 5:35 am

    That is probably because ./setenv.sh && make is a shell command and requires an interpreter to get it executed properly.

    I would suggest you to set Make command to:

    sh -c './setenv.sh && make'
    

    UPD.

    To get make targets to be passed as well, one can use $0 and $@ provided by the shell:

    sh -c './setenv.sh && $0 $@' make
    

    From bash manual:

    -c string

    Read and execute commands from string after processing the options, then exit. Any remaining arguments are assigned to the positional parameters, starting with $0.

    That is, after Eclipse will append arguments to this command, it would look like:

    sh -c './setenv.sh && $0 $@' make targets...
    

    The shell substitutes $0 with make and $@ with the rest passed arguments (if any), in the example above they are targets.... After all, the actually executed command is:

    ./setenv.sh && make targets...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am new in programming under linux and trying to get working this code:
Working in bash under Linux ubuntu 10 here I have Bash script that reads
I am working on a project in C under a Linux environment and I'm
is the following command working under Unix&Linux? ProcessBuilder prcbdoc = new ProcessBuilder(cmd,/C,start, Documentation.doc); prcbdoc.directory(new
I am now working on a data transfer project under Linux. The Project Team
We're working on a C program compiled with arm-eabi-gcc under Linux. We're using a
I'm working with GNU assembler on i386, generally under 32-bit Linux (I'm also aiming
I need to spawn a process in Java (under Linux exclusively) that will continue
I have a working application that downloads a specific file in the Ftp Server.
A client noticed that one of our java applets wasn't working anymore. However, we

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.