diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..116ac6a --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +EXTENSION_BUNDLE = build/$(shell grep -Po '"uuid"\s*:\s*"\K[^"]+' src/metadata.json).shell-extension.zip + +$(EXTENSION_BUNDLE): $(wildcard src/*) + mkdir -p build + gnome-extensions pack -fo build src + +.PHONY: build +build: $(EXTENSION_BUNDLE) + +.PHONY: install +install: $(EXTENSION_BUNDLE) + gnome-extensions install -f $(EXTENSION_BUNDLE) + +.PHONY: clean +clean: + rm -f $(EXTENSION_BUNDLE) + rmdir --ignore-fail-on-non-empty build \ No newline at end of file