Skip to content

Commit 827c707

Browse files
authored
Merge pull request #4139 from lifubang/fix-clean-remap-rootfs
remove remap-rootfs bin when running make clean
2 parents 35988ab + c811308 commit 827c707

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

Makefile

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,19 @@ 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+
rm -f contrib/cmd/remap-rootfs/remap-rootfs
90+
sudo rm -rf release
91+
rm -rf man/man8
92+
8093
.PHONY: static
8194
static: static-bin verify-dmz-arch
8295

@@ -186,18 +199,6 @@ install-man: man
186199
install -d -m 755 $(DESTDIR)$(MANDIR)/man8
187200
install -D -m 644 man/man8/*.8 $(DESTDIR)$(MANDIR)/man8
188201

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-
201202
.PHONY: cfmt
202203
cfmt: C_SRC=$(shell git ls-files '*.c' | grep -v '^vendor/')
203204
cfmt:

0 commit comments

Comments
 (0)