summarylogtreecommitdiffstats
path: root/Makefile
blob: d35c964f45e80ed2c729f1205462901f4802fc1c (plain)
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
# Helper make file
BINARY:=gk6x-bin

all: clean build install

.PHONY: clean
clean:
	@echo "Cleaning build files..."
	@rm -rf *.pkg.tar.xz *.zst *.zip pkg src
	@echo "Done."

.PHONY: build
build:
	@updpkgsums ./PKGBUILD
	@makepkg -fp ./PKGBUILD --noconfirm
	@makepkg --printsrcinfo > .SRCINFO

.PHONY: install
install:
	@updpkgsums ./PKGBUILD
	@makepkg -Ccip ./PKGBUILD --noconfirm

.PHONY: uninstall
uninstall:
	@sudo pacman -R $(BINARY) --noconfirm