-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
29 lines (27 loc) · 1.5 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: install-oc-extension
## install the lifegaurd project as an oc extension
INSTALL_DIRECTORY ?= /usr/local/bin
install-oc-extension:
@cp $(PWD)/clusterpools/apply.sh ${INSTALL_DIRECTORY}/oc-clusterpool_apply
@echo "Added an oc extension for 'oc clusterpool-apply'"
@cp $(PWD)/clusterpools/delete.sh ${INSTALL_DIRECTORY}/oc-clusterpool_delete
@echo "Added an oc extension for 'oc clusterpool-delete'"
@cp $(PWD)/clusterclaims/apply.sh ${INSTALL_DIRECTORY}/oc-clusterclaim_apply
@echo "Added an oc extension for 'oc clusterclaim-apply'"
@cp $(PWD)/clusterclaims/delete.sh ${INSTALL_DIRECTORY}/oc-clusterclaim_delete
@echo "Added an oc extension for 'oc clusterclaim-delete'"
@cp $(PWD)/clusterclaims/get_credentials.sh ${INSTALL_DIRECTORY}/oc-clusterclaim_get_credentials
@echo "Added an oc extension for 'oc clusterclaim-get-credentials'"
.PHONY: uninstall-oc-extension
## Uninstall the lifegaurd project as an oc extension
uninstall-oc-extension:
@rm ${INSTALL_DIRECTORY}/oc-clusterpool_apply
@echo "Removed the oc extension for 'oc clusterpool-apply'"
@rm ${INSTALL_DIRECTORY}/oc-clusterpool_delete
@echo "Removed the oc extension for 'oc clusterpool-delete'"
@rm ${INSTALL_DIRECTORY}/oc-clusterclaim_apply
@echo "Removed the oc extension for 'oc clusterclaim-apply'"
@rm ${INSTALL_DIRECTORY}/oc-clusterclaim_delete
@echo "Removed the oc extension for 'oc clusterclaim-delete'"
@rm ${INSTALL_DIRECTORY}/oc-clusterclaim_get_credentials
@echo "Removed the oc extension for 'oc clusterclaim-get-credentials'"