-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
45 lines (36 loc) · 1.18 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
EXTENSION_ZIP := ideapad-controls@azzamalsharafi.gmail.com.shell-extension.zip
TMPFILES_CONF := 99-ideapad.conf
subprojects:
@git submodule update --resursive
template.ui: subprojects
@./subprojects/blueprint-compiler/blueprint-compiler.py compile template.blp > template.ui
$(EXTENSION_ZIP): template.ui
@gnome-extensions pack ./ \
--extra-source=template.ui \
--extra-source=optionsUtils.js \
--extra-source=aggregateMenu.js \
--extra-source=quickSettingsMenu.js \
--extra-source=common.js \
--extra-source=icons/ \
--extra-source=LICENSE.md \
--podir=po \
--force
translations:
@xgettext \
--files-from=po/POTFILES \
--output=po/ideapat-controls.pot \
--from-code=UTF-8 \
--add-comments \
--keyword=_ \
--keyword=C_:1c,2
install: $(EXTENSION_ZIP)
@echo "Installing extension"
gnome-extensions install --force $(EXTENSION_ZIP)
@echo "Extension installed"
tmpfiles-install: $(TMPFILES_CONF)
@echo "Installing tmpfiles.d configuration"
cp -v $(TMPFILES_CONF) /etc/tmpfiles.d/$(TMPFILES_CONF)
@echo "Installed tmpfiles.d configuration. Reboot or run 'systemd-tmpfiles --create' to make it effective"
clean:
rm -f $(EXTENSION_ZIP) template.ui
all: install