Skip to content

Commit

Permalink
Merge pull request #4139 from lifubang/fix-clean-remap-rootfs
Browse files Browse the repository at this point in the history
remove remap-rootfs bin when running make clean
  • Loading branch information
AkihiroSuda committed Jan 4, 2024
2 parents 35988ab + c811308 commit 827c707
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@ all: runc recvtty sd-helper seccompagent fs-idmap memfd-bind pidfd-kill remap-ro
recvtty sd-helper seccompagent fs-idmap memfd-bind pidfd-kill remap-rootfs:
$(GO_BUILD) -o contrib/cmd/$@/$@ ./contrib/cmd/$@

.PHONY: clean
clean:
rm -f runc runc-* libcontainer/dmz/runc-dmz
rm -f contrib/cmd/recvtty/recvtty
rm -f contrib/cmd/sd-helper/sd-helper
rm -f contrib/cmd/seccompagent/seccompagent
rm -f contrib/cmd/fs-idmap/fs-idmap
rm -f contrib/cmd/memfd-bind/memfd-bind
rm -f contrib/cmd/pidfd-kill/pidfd-kill
rm -f contrib/cmd/remap-rootfs/remap-rootfs
sudo rm -rf release
rm -rf man/man8

.PHONY: static
static: static-bin verify-dmz-arch

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

.PHONY: clean
clean:
rm -f runc runc-* libcontainer/dmz/runc-dmz
rm -f contrib/cmd/fs-idmap/fs-idmap
rm -f contrib/cmd/recvtty/recvtty
rm -f contrib/cmd/sd-helper/sd-helper
rm -f contrib/cmd/seccompagent/seccompagent
rm -f contrib/cmd/memfd-bind/memfd-bind
rm -f contrib/cmd/pidfd-kill/pidfd-kill
sudo rm -rf release
rm -rf man/man8

.PHONY: cfmt
cfmt: C_SRC=$(shell git ls-files '*.c' | grep -v '^vendor/')
cfmt:
Expand Down

0 comments on commit 827c707

Please sign in to comment.