Unix/Linux Go Back    


UNIX for Beginners Questions & Answers If you're not sure where to post a Unix or Linux question, post it here. All unix and Linux beginners welcome in this forum!

How to call .sh file from makefile.am?

UNIX for Beginners Questions & Answers


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 04-13-2018   -   Original Discussion by srikanth007
srikanth007's Unix or Linux Image
srikanth007 srikanth007 is offline
Registered User
 
Join Date: Apr 2018
Last Activity: 2 May 2018, 4:55 AM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
How to call .sh file from makefile.am?

I have used $(shell ./doEcho.sh) and also tried bin_SCRIPTS = doEcho.sh but it is not working it is compiling but not executing.
I have kept mkdir filename in doEcho.sh
Sponsored Links
    #2  
Old Unix and Linux 4 Weeks Ago   -   Original Discussion by srikanth007
dryden's Unix or Linux Image
dryden dryden is offline
Registered User
 
Join Date: Apr 2018
Last Activity: 30 April 2018, 11:29 AM EDT
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
It wouldn't be possible to assess that without seeing more of the makefile please.

$(shell ...) should ordinarily just work. Also, you are sure the script is chmod +x right?
Sponsored Links
    #3  
Old Unix and Linux 4 Weeks Ago   -   Original Discussion by srikanth007
bakunin's Unix or Linux Image
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 25 May 2018, 6:09 AM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 5,765
Thanks: 112
Thanked 1,687 Times in 1,239 Posts
Quote:
Originally Posted by srikanth007 View Post
I have used $(shell ./doEcho.sh)
In addition to what dryden already said: what makes you think that the current directory is in fact what you believe it to be?

It is always problematic to use relative pathes in scripts because you never can be sure from where the script is called.

I hope this helps.

bakunin
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to call .sh file from makefile.am? srikanth007 Shell Programming and Scripting 1 04-13-2018 11:31 AM
Bash script from makefile - it is called each time i call make Pufo Shell Programming and Scripting 0 03-03-2015 09:57 AM
Call makefile from shell script yamahabob Shell Programming and Scripting 1 04-12-2011 06:30 PM
Help with Simple Multi-Level Makefile (Extremely New at Makefile) Tatl Homework & Coursework Questions 1 03-09-2011 03:48 AM
Makefile problem - How to run module load in a Makefile hernandinho UNIX for Advanced & Expert Users 2 04-13-2009 10:20 AM



All times are GMT -4. The time now is 11:33 AM.