summarylogtreecommitdiffstats
path: root/Makefile
blob: 1d3bbead5fedb59c1d173397d1bba0bd796bd092 (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
26
27
28
29
30
31
32
33
.PHONY: all clean verify force-build update-checksums

PACKAGE=akku-*-any.pkg.tar.xz

# default
all: $(PACKAGE)
	@make verify
	@make .SRCINFO

clean:
	-rm *.tar.*
	-rm -R src/
	-rm -R pkg/

# NOTE: excludes are only used to prevent namcap false positives over Guile object (.go) files
verify: PKGBUILD $(PACKAGE)
	@namcap PKGBUILD
	@namcap --exclude=anyelf,elfgnurelro,elfunstripped,elfnopie $(PACKAGE)

# forces a full makepkg build
force-build:
	@LC_ALL=C makepkg -f --clean

# downloads files, generates checksums and updates them on PKGBUILD
update-checksums:
	makepkg --verifysource --skipchecksums -f --nobuild --noextract
	updpkgsums

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

$(PACKAGE): PKGBUILD
	@make force-build