blob: 70813929c8abb87c32ebc8ae52eacff385bd337e (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# vim: ft=make ts=4 sw=4 noet
define usage
Available 'make' targets are:
all Build and install.
build Build only, don't install.
clean Remove some build residue.
help Display this text.
mrproper Thorough cleanup.
nc Analyse with namcap.
pc Prepare AUR commit.
endef
.PHONY: all build clean help mrproper nc pc
help:
$(info $(usage))
@exit 0
mp := makepkg --cleanbuild --check --log
all: clean
$(mp) --install
build: clean
$(mp)
clean:
rm -fr *.{log,zst} log*
mrproper: clean
rm -fr *.tar.gz pkg src
.SRCINFO: PKGBUILD
makepkg --printsrcinfo >$@
pc:
updpkgsums
shcare PKGBUILD
make .SRCINFO
nc: PKGBUILD *.zst
namcap $^
|