Makefile directive interpretation
up vote
0
down vote
favorite
I am trying to reverse this Makefile
.
However in the folowing lines:
install-packer: tmp/packer_$(PACKER_VERSION).zip
mkdir -p ~/bin
unzip -o -d ~/bin $<
chmod +x $(PACKER)
@echo Packer $(PACKER_VERSION) was successfully installed!
# Install packer only if it doesn't exist
$(PACKER):
@$(MAKE) install-packer
tmp/packer_$(PACKER_VERSION).zip:
curl -fsSLo $@ 'https://releases.hashicorp.com/packer/$(PACKER_VERSION)/packer_$(PACKER_VERSION)_$(UNAME)_amd64.zip'
@echo Downloaded new Packer version: $(PACKER_VERSION)!
I am unable to understand the following directive/dependency:
# Install packer only if it doesn't exist
$(PACKER):
@$(MAKE) install-packer
How it will
install packer only if it doesn't exist
?
makefile
add a comment |
up vote
0
down vote
favorite
I am trying to reverse this Makefile
.
However in the folowing lines:
install-packer: tmp/packer_$(PACKER_VERSION).zip
mkdir -p ~/bin
unzip -o -d ~/bin $<
chmod +x $(PACKER)
@echo Packer $(PACKER_VERSION) was successfully installed!
# Install packer only if it doesn't exist
$(PACKER):
@$(MAKE) install-packer
tmp/packer_$(PACKER_VERSION).zip:
curl -fsSLo $@ 'https://releases.hashicorp.com/packer/$(PACKER_VERSION)/packer_$(PACKER_VERSION)_$(UNAME)_amd64.zip'
@echo Downloaded new Packer version: $(PACKER_VERSION)!
I am unable to understand the following directive/dependency:
# Install packer only if it doesn't exist
$(PACKER):
@$(MAKE) install-packer
How it will
install packer only if it doesn't exist
?
makefile
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to reverse this Makefile
.
However in the folowing lines:
install-packer: tmp/packer_$(PACKER_VERSION).zip
mkdir -p ~/bin
unzip -o -d ~/bin $<
chmod +x $(PACKER)
@echo Packer $(PACKER_VERSION) was successfully installed!
# Install packer only if it doesn't exist
$(PACKER):
@$(MAKE) install-packer
tmp/packer_$(PACKER_VERSION).zip:
curl -fsSLo $@ 'https://releases.hashicorp.com/packer/$(PACKER_VERSION)/packer_$(PACKER_VERSION)_$(UNAME)_amd64.zip'
@echo Downloaded new Packer version: $(PACKER_VERSION)!
I am unable to understand the following directive/dependency:
# Install packer only if it doesn't exist
$(PACKER):
@$(MAKE) install-packer
How it will
install packer only if it doesn't exist
?
makefile
I am trying to reverse this Makefile
.
However in the folowing lines:
install-packer: tmp/packer_$(PACKER_VERSION).zip
mkdir -p ~/bin
unzip -o -d ~/bin $<
chmod +x $(PACKER)
@echo Packer $(PACKER_VERSION) was successfully installed!
# Install packer only if it doesn't exist
$(PACKER):
@$(MAKE) install-packer
tmp/packer_$(PACKER_VERSION).zip:
curl -fsSLo $@ 'https://releases.hashicorp.com/packer/$(PACKER_VERSION)/packer_$(PACKER_VERSION)_$(UNAME)_amd64.zip'
@echo Downloaded new Packer version: $(PACKER_VERSION)!
I am unable to understand the following directive/dependency:
# Install packer only if it doesn't exist
$(PACKER):
@$(MAKE) install-packer
How it will
install packer only if it doesn't exist
?
makefile
makefile
asked 15 hours ago
pkaramol
1033
1033
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
draft saved
draft discarded
draft saved
draft discarded
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
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1374955%2fmakefile-directive-interpretation%23new-answer', 'question_page');
}
);
Post as a guest
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
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
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