-
-
Notifications
You must be signed in to change notification settings - Fork 184
/
Makefile
56 lines (39 loc) · 1.42 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
extension = material-shell@papyelgringo
extension_tool = gnome-extensions
.PHONY: schemas compile build_prod build_tasks update_git update install disable enable dist clean sass
dist:
rm -rf dist
mkdir -p dist/schemas
schemas: dist
cp -r schemas dist/
glib-compile-schemas dist/schemas/
sass: dist/style-dark-theme.css dist/style-light-theme.css dist/style-primary-theme.css
dist/style-dark-theme.css: dist src/styles/dark-theme.scss
npx sass --no-source-map src/styles/dark-theme.scss dist/style-dark-theme.css
dist/style-light-theme.css: dist src/styles/light-theme.scss
npx sass --no-source-map src/styles/light-theme.scss dist/style-light-theme.css
dist/style-primary-theme.css: dist src/styles/primary-theme.scss
npx sass --no-source-map src/styles/primary-theme.scss dist/style-primary-theme.css
disable:
$(extension_tool) disable $(extension)
enable:
$(extension_tool) enable $(extension)
npm_dependencies:
npm install
zip_dist:
rm -f dist.zip
cd dist && zip -r ../dist.zip *
build_prod: npm_dependencies compile zip_dist
clean:
rm -rf build
compile: dist schemas sass
npx tsc
npx tsc scripts/transpile.ts --outDir build && node build/transpile.js
npm run rollup-extension && npm run rollup-prefs
sed "s/{put_commit_there}/$(shell git rev-parse --short HEAD)/" metadata.json > dist/metadata.json
cp -r assets dist/assets
update_git:
git pull --ff-only
update: update_git install
install:
./scripts/install.py