Add uninstall commande, create local extension directory before installing

This commit is contained in:
Romain Vigier
2019-10-16 10:06:02 +02:00
parent 84d8a16f03
commit 4db8804d9f
+7 -2
View File
@@ -11,8 +11,9 @@ build: clean
cp ./LICENSE ./build/$(UUID) cp ./LICENSE ./build/$(UUID)
.PHONY: install .PHONY: install
install: build install: uninstall build
cp -r ./build/* $(GSEXT_DIR_LOCAL)/$(UUID) mkdir -p $(GSEXT_DIR_LOCAL)
cp -r ./build/* $(GSEXT_DIR_LOCAL)
.PHONY: zip .PHONY: zip
zip: build zip: build
@@ -22,3 +23,7 @@ zip: build
.PHONY: clean .PHONY: clean
clean: clean:
-rm -rf ./build -rm -rf ./build
.PHONY: uninstall
uninstall:
-rm -rf $(GSEXT_DIR_LOCAL)/$(UUID)