Re-jig names and add test target in Makefile

This commit is contained in:
Luke Murphy 2020-10-25 21:31:41 +01:00
parent eec9a8ba1a
commit dad72c820a
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -1,14 +1,17 @@
default: install default: test
dev_install: dev-install:
ln -sf $(PWD)/abra ~/.local/bin @ln -sf $(PWD)/abra ~/.local/bin
install: install:
install abra /usr/bin/abra @curl https://install.abra.autonomic.zone | bash
get_yq: test:
wget https://github.com/mikefarah/yq/releases/download/3.3.2/yq_linux_amd64 && \ @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 && \ 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