File: Makefile

package info (click to toggle)
gnome-shell-extension-caffeine 44-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,044 kB
  • sloc: javascript: 1,406; xml: 110; makefile: 25; sh: 13
file content (21 lines) | stat: -rw-r--r-- 659 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
all: build install

.PHONY: build install lint dist

build:
	./update-locale.sh
	glib-compile-schemas --strict --targetdir=caffeine@patapon.info/schemas/ caffeine@patapon.info/schemas

dist: build
	rm -f caffeine@patapon.info.zip
	cd caffeine@patapon.info && zip -r ../caffeine@patapon.info.zip ./* --exclude \*.po --exclude \*.gschema.xml

install:
	install -d ~/.local/share/gnome-shell/extensions
	cp -a caffeine@patapon.info/ ~/.local/share/gnome-shell/extensions/

lint:
	eslint --resolve-plugins-relative-to "$(shell npm root -g)" caffeine@patapon.info

lint-fix:
	eslint --resolve-plugins-relative-to "$(shell npm root -g)" --fix caffeine@patapon.info