summarylogtreecommitdiffstats
path: root/Makefile
blob: c4d24c4120abd25b6fd1a1279d5a981a220d7133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
PY = rofi-twitch
ICON = $(PY).png
DESKTOP = $(PY).desktop

pkg: .SRCINFO
	makepkg --check --noconfirm -sf

.SRCINFO: PKGBUILD
	makepkg --check --printsrcinfo > $@

PKGBUILD: format pngopt $(DESKTOP)
	updpkgsums

format: $(PY)
	yapf -i $<

pngopt: $(ICON)
	optipng $<

.PHONY: format pngopt
.PRECIOUS: $(PY) $(ICON) $(DESKTOP) PKGBUILD