How to execute a bash script into a makefile Announcing the arrival of Valued Associate #679:...
Identify plant with long narrow paired leaves and reddish stems
Can a non-EU citizen traveling with me come with me through the EU passport line?
Why is my conclusion inconsistent with the van't Hoff equation?
When do you get frequent flier miles - when you buy, or when you fly?
Coloring maths inside a tcolorbox
Error "illegal generic type for instanceof" when using local classes
Should I use a zero-interest credit card for a large one-time purchase?
What exactly is a "Meth" in Altered Carbon?
Why do we bend a book to keep it straight?
How to tell that you are a giant?
String `!23` is replaced with `docker` in command line
Why do people hide their license plates in the EU?
Denied boarding although I have proper visa and documentation. To whom should I make a complaint?
If a contract sometimes uses the wrong name, is it still valid?
What's the purpose of writing one's academic biography in the third person?
How discoverable are IPv6 addresses and AAAA names by potential attackers?
What causes the vertical darker bands in my photo?
What's the meaning of 間時肆拾貳 at a car parking sign
How to run gsettings for another user Ubuntu 18.04.2 LTS
Echoing a tail command produces unexpected output?
How to call a function with default parameter through a pointer to function that is the return of another function?
How to deal with a team lead who never gives me credit?
Is the Standard Deduction better than Itemized when both are the same amount?
Is it true that "carbohydrates are of no use for the basal metabolic need"?
How to execute a bash script into a makefile
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Multiple parameters to bash scriptMakefile Backup Targetmake *** No rule to make target in MakefileBASH script that generates a header file with function prototypesUsage of Bash commands in Nested Loops in MakefileHow to write a Bash script that accepts options?warning when running simple shell script in bash for ubuntu on windowsPHP calling Bash-scriptBASH script troubleshootingMake return that directory is not recognized as an internal or external command on windows
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I have a simple bash script, that install and zip a NodeJS application. It's worked great local. Now I want to execute this script from a Makefile. So I wrote this code
.FOO: install_and_zip
install_and_zip: ./install_and_zip_foo.sh
So if I run this Makefile with make foo I'm getting this error message:
make: *** No rule to make target `foo'. Stop.
Makefile and bash script are in the same directory.
What I'm doing wrong? Can you help me to fix this Makefile?
bash make makefile
add a comment |
I have a simple bash script, that install and zip a NodeJS application. It's worked great local. Now I want to execute this script from a Makefile. So I wrote this code
.FOO: install_and_zip
install_and_zip: ./install_and_zip_foo.sh
So if I run this Makefile with make foo I'm getting this error message:
make: *** No rule to make target `foo'. Stop.
Makefile and bash script are in the same directory.
What I'm doing wrong? Can you help me to fix this Makefile?
bash make makefile
The recipe in your Makefile is called.FOO, butmake foowill try to execute a recipe calledfoo.
– gronostaj
18 hours ago
add a comment |
I have a simple bash script, that install and zip a NodeJS application. It's worked great local. Now I want to execute this script from a Makefile. So I wrote this code
.FOO: install_and_zip
install_and_zip: ./install_and_zip_foo.sh
So if I run this Makefile with make foo I'm getting this error message:
make: *** No rule to make target `foo'. Stop.
Makefile and bash script are in the same directory.
What I'm doing wrong? Can you help me to fix this Makefile?
bash make makefile
I have a simple bash script, that install and zip a NodeJS application. It's worked great local. Now I want to execute this script from a Makefile. So I wrote this code
.FOO: install_and_zip
install_and_zip: ./install_and_zip_foo.sh
So if I run this Makefile with make foo I'm getting this error message:
make: *** No rule to make target `foo'. Stop.
Makefile and bash script are in the same directory.
What I'm doing wrong? Can you help me to fix this Makefile?
bash make makefile
bash make makefile
asked 18 hours ago
dudidudi
1033
1033
The recipe in your Makefile is called.FOO, butmake foowill try to execute a recipe calledfoo.
– gronostaj
18 hours ago
add a comment |
The recipe in your Makefile is called.FOO, butmake foowill try to execute a recipe calledfoo.
– gronostaj
18 hours ago
The recipe in your Makefile is called
.FOO, but make foo will try to execute a recipe called foo.– gronostaj
18 hours ago
The recipe in your Makefile is called
.FOO, but make foo will try to execute a recipe called foo.– gronostaj
18 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1425947%2fhow-to-execute-a-bash-script-into-a-makefile%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1425947%2fhow-to-execute-a-bash-script-into-a-makefile%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The recipe in your Makefile is called
.FOO, butmake foowill try to execute a recipe calledfoo.– gronostaj
18 hours ago