diff --git a/Makefile b/Makefile index 9eea8df..86eeef3 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,17 @@ -default: install +default: test -dev_install: - ln -sf $(PWD)/abra ~/.local/bin +dev-install: + @ln -sf $(PWD)/abra ~/.local/bin install: - install abra /usr/bin/abra + @curl https://install.abra.autonomic.zone | bash -get_yq: - wget https://github.com/mikefarah/yq/releases/download/3.3.2/yq_linux_amd64 && \ +test: + @bats test.bats + +dev-install-yq: + @wget https://github.com/mikefarah/yq/releases/download/3.3.2/yq_linux_amd64 && \ chmod +x yq_linux_amd64 && \ - mv yq_linux_amd64 yq + mv yq_linux_amd64 ~/.local/bin/yq -.PHONY: dev_install install get_yq +.PHONY: dev-install install test dev-install-yq