X Tutup
Skip to content

Commit d2b6899

Browse files
committed
Makefile: fixes for seccompagent
1. The seccompagent target it built in the same way as others in contrib, so there is no need to have a separate rule. 2. Mark seccompagent as phony, because it is (it rarely happens, but I actually just had an issue because this was absent). 3. Add seccompagent binary to clean target. Fixes: e21a9ee Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
1 parent d362b7a commit d2b6899

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,9 @@ runc:
3232

3333
all: runc recvtty sd-helper seccompagent
3434

35-
recvtty sd-helper:
35+
recvtty sd-helper seccompagent:
3636
$(GO_BUILD) -o contrib/cmd/$@/$@ ./contrib/cmd/$@
3737

38-
seccompagent:
39-
$(GO_BUILD) -o contrib/cmd/seccompagent/seccompagent ./contrib/cmd/seccompagent
40-
4138
static:
4239
$(GO_BUILD_STATIC) -o runc .
4340
$(GO_BUILD_STATIC) -o contrib/cmd/recvtty/recvtty ./contrib/cmd/recvtty
@@ -115,6 +112,7 @@ clean:
115112
rm -f runc runc-*
116113
rm -f contrib/cmd/recvtty/recvtty
117114
rm -f contrib/cmd/sd-helper/sd-helper
115+
rm -f contrib/cmd/seccompagent/seccompagent
118116
rm -rf release
119117
rm -rf man/man8
120118

@@ -152,7 +150,7 @@ localcross:
152150
CGO_ENABLED=1 GOARCH=arm64 CC=aarch64-linux-gnu-gcc $(GO_BUILD) -o runc-arm64 .
153151
CGO_ENABLED=1 GOARCH=ppc64le CC=powerpc64le-linux-gnu-gcc $(GO_BUILD) -o runc-ppc64le .
154152

155-
.PHONY: runc all recvtty sd-helper static release dbuild lint man runcimage \
153+
.PHONY: runc all recvtty sd-helper seccompagent static release dbuild lint man runcimage \
156154
test localtest unittest localunittest integration localintegration \
157155
rootlessintegration localrootlessintegration shell install install-bash \
158156
install-man clean cfmt shfmt shellcheck \

0 commit comments

Comments
 (0)
X Tutup