-
Notifications
You must be signed in to change notification settings - Fork 109
/
Copy pathMakefile
30 lines (22 loc) · 813 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
BUNDLE_PATH = "caffeine@patapon.info.zip"
EXTENSION_DIR = "caffeine@patapon.info"
all: build install
.PHONY: build install clean translations lint lint-fix
build:
rm -f $(BUNDLE_PATH)
cd $(EXTENSION_DIR); \
gnome-extensions pack --force --podir=locale \
--extra-source=preferences/ \
--extra-source=icons/; \
mv $(EXTENSION_DIR).shell-extension.zip ../$(BUNDLE_PATH)
install:
gnome-extensions install $(BUNDLE_PATH) --force
clean:
@rm -fv $(BUNDLE_PATH)
@rm -fv $(EXTENSION_DIR)/schemas/gschemas.compiled
translations:
@./update-locale.sh
lint:
eslint -c .eslintrc.yml --resolve-plugins-relative-to "$(shell npm root -g)" $(EXTENSION_DIR)
lint-fix:
eslint -c .eslintrc.yml --resolve-plugins-relative-to "$(shell npm root -g)" --fix $(EXTENSION_DIR)