Skip to content

Commit 0bbb7e9

Browse files
committed
move the target 'clean' next to 'all'
Signed-off-by: lfbzhm <[email protected]>
1 parent 2922273 commit 0bbb7e9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,18 @@ all: runc recvtty sd-helper seccompagent fs-idmap memfd-bind pidfd-kill remap-ro
7777
recvtty sd-helper seccompagent fs-idmap memfd-bind pidfd-kill remap-rootfs:
7878
$(GO_BUILD) -o contrib/cmd/$@/$@ ./contrib/cmd/$@
7979

80+
.PHONY: clean
81+
clean:
82+
rm -f runc runc-* libcontainer/dmz/runc-dmz
83+
rm -f contrib/cmd/recvtty/recvtty
84+
rm -f contrib/cmd/sd-helper/sd-helper
85+
rm -f contrib/cmd/seccompagent/seccompagent
86+
rm -f contrib/cmd/fs-idmap/fs-idmap
87+
rm -f contrib/cmd/memfd-bind/memfd-bind
88+
rm -f contrib/cmd/pidfd-kill/pidfd-kill
89+
sudo rm -rf release
90+
rm -rf man/man8
91+
8092
.PHONY: static
8193
static: static-bin verify-dmz-arch
8294

@@ -186,18 +198,6 @@ install-man: man
186198
install -d -m 755 $(DESTDIR)$(MANDIR)/man8
187199
install -D -m 644 man/man8/*.8 $(DESTDIR)$(MANDIR)/man8
188200

189-
.PHONY: clean
190-
clean:
191-
rm -f runc runc-* libcontainer/dmz/runc-dmz
192-
rm -f contrib/cmd/fs-idmap/fs-idmap
193-
rm -f contrib/cmd/recvtty/recvtty
194-
rm -f contrib/cmd/sd-helper/sd-helper
195-
rm -f contrib/cmd/seccompagent/seccompagent
196-
rm -f contrib/cmd/memfd-bind/memfd-bind
197-
rm -f contrib/cmd/pidfd-kill/pidfd-kill
198-
sudo rm -rf release
199-
rm -rf man/man8
200-
201201
.PHONY: cfmt
202202
cfmt: C_SRC=$(shell git ls-files '*.c' | grep -v '^vendor/')
203203
cfmt:

0 commit comments

Comments
 (0)