From 4db8804d9f20450a03f71c09128347c0bc454cc6 Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Wed, 16 Oct 2019 10:06:02 +0200 Subject: [PATCH] Add uninstall commande, create local extension directory before installing --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d328d14..fc80a21 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,9 @@ build: clean cp ./LICENSE ./build/$(UUID) .PHONY: install -install: build - cp -r ./build/* $(GSEXT_DIR_LOCAL)/$(UUID) +install: uninstall build + mkdir -p $(GSEXT_DIR_LOCAL) + cp -r ./build/* $(GSEXT_DIR_LOCAL) .PHONY: zip zip: build @@ -22,3 +23,7 @@ zip: build .PHONY: clean clean: -rm -rf ./build + +.PHONY: uninstall +uninstall: + -rm -rf $(GSEXT_DIR_LOCAL)/$(UUID)