Files
floatbar/Makefile

33 lines
694 B
Makefile

NAME=floatbar
DOMAIN=tomtroeger.de
.PHONY: all pack install clean
all: dist/extension.js
node_modules: package.json
npm install
dist/extension.js: node_modules
tsc
dist/stylesheet.css: stylesheet.css
cp stylesheet.css dist/
$(NAME).zip: dist/extension.js dist/stylesheet.css
@cp metadata.json dist/
@(cd dist && zip ../$(NAME).zip -9r .)
pack: $(NAME).zip
install: $(NAME).zip
@touch ~/.local/share/gnome-shell/extensions/$(NAME)@$(DOMAIN)
@rm -rf ~/.local/share/gnome-shell/extensions/$(NAME)@$(DOMAIN)
@mv dist ~/.local/share/gnome-shell/extensions/$(NAME)@$(DOMAIN)
clean:
@rm -rf dist node_modules $(NAME).zip
test:
@dbus-run-session -- gnome-shell --nested --wayland