blob: e143fe73f3a5b05448c24c17ea3536d784d92387 (
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
|
#!/usr/bin/make -f
CFLAGS += -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter
dirs = \
$(HOME)/packages/pkgdest \
$(HOME)/packages/srcdest \
$(HOME)/packages/srcpkgdest \
$(HOME)/packages/logdest \
$(HOME)/packages/builddir
all: \
$(HOME)/bin/autobuild \
$(HOME)/.ssh/id_rsa \
$(HOME)/.ssh/id_rsa.pub \
$(HOME)/.gnupg/secring.gpg \
$(HOME)/packages/abslibre \
$(dirs)
autobuild $(HOME)/bin/autobuild: $(HOME)/bin/autobuild.c
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@ && chmod 6755 $@
$(HOME)/.ssh/id_rsa $(HOME)/.ssh/id_rsa.pub:
ssh-keygen -N '' -f $@
$(HOME)/.gnupg/secring.gpg:
printf '%s\n' \
'Key-Type: default' \
'Subkey-Type: default' \
'Name-Real: Parabola automatic package builder' \
'Name-Email: dev@lists.parabolagnulinux.org' \
'Expire-Date: 0' \
| gpg --gen-key --batch
$(HOME)/packages/abslibre:
createworkdir
$(dirs): %:
mkdir -p -- $@
.DELETE_ON_ERROR:
|