This repository has been archived by the owner on May 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
58 lines (48 loc) · 1.51 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
all: build install lint
.PHONY: build install
build:
glib-compile-schemas --strict --targetdir=schemas/ schemas
install: build
echo "installing..."
mkdir -p ~/.local/share/gnome-shell/extensions/anino-dock@icedman.github.com/
cp -R ./* ~/.local/share/gnome-shell/extensions/anino-dock@icedman.github.com/
publish:
echo "publishing..."
rm -rf build
mkdir build
cp LICENSE ./build
cp *.js ./build
cp metadata.json ./build
cp stylesheet.css ./build
cp CHANGELOG.md ./build
cp README.md ./build
cp -R schemas ./build
cp -R ui ./build
cp -R apps ./build
cp -R preferences ./build
cp -R effects ./build
rm -rf ./*.zip
rm build/apps/*.desktop
cd build ; \
zip -qr ../anino-dock@icedman.git.luolix.top.zip .
install-zip: publish
echo "installing zip..."
rm -rf ~/.local/share/gnome-shell/extensions/anino-dock@icedman.github.com
mkdir -p ~/.local/share/gnome-shell/extensions/anino-dock@icedman.github.com/
unzip -q anino-dock@icedman.git.luolix.top.zip -d ~/.local/share/gnome-shell/extensions/anino-dock@icedman.github.com/
test-prefs:
gnome-extensions prefs anino-dock@icedman.github.com
test-shell: install
env GNOME_SHELL_SLOWDOWN_FACTOR=2 \
MUTTER_DEBUG_DUMMY_MODE_SPECS=600x600 \
MUTTER_DEBUG_DUMMY_MONITOR_SCALES=2 \
dbus-run-session -- gnome-shell --nested --wayland
rm /run/user/1000/gnome-shell-disable-extensions
lint:
eslint ./
xml-lint:
cd ui ; \
find . -name "*.ui" -type f -exec xmllint --output '{}' --format '{}' \;
pretty: xml-lint
rm -rf ./build/*
prettier --single-quote --write "**/*.js"