Fixed make install command #4

Merged
mitch merged 1 commits from fix-makefile into master 2023-10-05 21:05:02 +00:00
2 changed files with 8 additions and 8 deletions
Showing only changes of commit 6df08053c6 - Show all commits

View File

@ -7,12 +7,12 @@ build:
# Clean # Clean
#################################################### ####################################################
clean: clean:
rm -f ~/.local/bin/versionedTerraform rm -f $(shell go env GOPATH)/bin/versionedTerraform
#################################################### ####################################################
# Install # Install
#################################################### ####################################################
install: install:
mv versionedTerraform ~/.local/bin/ mv versionedTerraform $(shell go env GOPATH)/bin/
#################################################### ####################################################
# help feature # help feature
#################################################### ####################################################
@ -20,8 +20,8 @@ help:
@echo '' @echo ''
@echo 'Usage: make [TARGET]' @echo 'Usage: make [TARGET]'
@echo 'Targets:' @echo 'Targets:'
@echo ' build go build -o versionedTerraform ./cmd' @echo ' build go build -o versionedTerraform ./cmd'
@echo ' clean removes installed versionedTerraform file' @echo ' clean removes installed versionedTerraform file'
@echo ' install installs versionedTerraform to local user bin folder' @echo ' install installs versionedTerraform to bin folder in GOPATH'
@echo ' all Nothing to do.' @echo ' all Nothing to do.'
@echo '' @echo ''

View File

@ -5,7 +5,7 @@ A wrapper for terraform to detect the expected version of terraform,
download, and execute that version download, and execute that version
## Requirements ## Requirements
- go compiler (only tested on go1.17) - go
## Install ## Install
`make build install` for installation to local user<br> `make build install` for installation to local user<br>