Home Man
Search
Today's Posts
Register

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?

👤 Login to reply

 
Thread Tools Search this Thread
# 1  
Old 04-13-2018
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
# 2  
Old 04-22-2018
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?
# 3  
Old 04-22-2018
Quote:
Originally Posted by srikanth007
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
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
SunOS 5.5.1 usage of Makefile command in make file rajujayanthy Solaris 2 04-26-2016 10:58 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
Genrate lib (.a) and binary file (exec) in the same Makefile cayo Programming 2 10-02-2013 03:51 PM
[Makefile]File + constant problem Chrisdot Programming 1 05-09-2012 12:19 PM
Makefile File not found cciarleg Shell Programming and Scripting 2 04-17-2011 08:29 PM
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
Makefile autogenerated by shell script for a given .c code file darius2 Shell Programming and Scripting 5 01-09-2009 07:03 PM


All times are GMT -4. The time now is 03:25 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password