Skip to content

Commit

Permalink
Merge pull request #84 from da-edra/fix/create-destination-directory
Browse files Browse the repository at this point in the history
fix: Create destination directory if it does not exist.
  • Loading branch information
juliosueiras authored Aug 10, 2020
2 parents ebf8145 + e169b75 commit 4d5f533
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ DST ?= ~/.bin/
terraform-lsp:
go build -ldflags "-X main.GitCommit=$(COMMIT) -X main.Version=$(VERSION) -X main.Date=$(DATE)"

copy: terraform-lsp
copy: terraform-lsp | create-dir
cp ./terraform-lsp $(DST) && cp ./terraform-lsp ~/

create-dir:
mkdir -p $(DST)

clean:
rm -f terraform-lsp

Expand Down

0 comments on commit 4d5f533

Please sign in to comment.