From 49a58d2d6070f427ee7c60f1d8a6251df9e8b73c Mon Sep 17 00:00:00 2001 From: snoutie Date: Thu, 10 Apr 2025 15:58:05 +0000 Subject: [PATCH] Add Makefile --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile 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