summarylogtreecommitdiffstats
path: root/Makefile
blob: 74382d040030e7a2ead8396e914badcc809661a8 (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
# Helper make file
BINARY:=apache-spark
all: clean build install

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

.PHONY: build
build:
	@updpkgsums ./PKGBUILD
	@multilib-build -c -- -- -Acsf .
	@makepkg --printsrcinfo > .SRCINFO

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

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