mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #12443 from cfc4n/makefile_xargs_r
Makefile: -r is only necessary on GNU xargs.
This commit is contained in:
commit
86185ba20f
11
Makefile
11
Makefile
@ -10,6 +10,15 @@
|
|||||||
# make docker-kill
|
# make docker-kill
|
||||||
# make docker-remove
|
# make docker-remove
|
||||||
|
|
||||||
|
UNAME := $(shell uname)
|
||||||
|
XARGS = xargs
|
||||||
|
|
||||||
|
# -r is only necessary on GNU xargs.
|
||||||
|
ifeq ($(UNAME), Linux)
|
||||||
|
XARGS += -r
|
||||||
|
endif
|
||||||
|
XARGS += rm -r
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
GO_BUILD_FLAGS="-v" ./build
|
GO_BUILD_FLAGS="-v" ./build
|
||||||
@ -26,7 +35,7 @@ clean:
|
|||||||
rm -rf ./release
|
rm -rf ./release
|
||||||
rm -rf ./coverage/*.err ./coverage/*.out
|
rm -rf ./coverage/*.err ./coverage/*.out
|
||||||
rm -rf ./tests/e2e/default.proxy
|
rm -rf ./tests/e2e/default.proxy
|
||||||
find ./ -name "127.0.0.1:*" -o -name "localhost:*" -o -name "*.log" -o -name "agent-*" -o -name "*.coverprofile" -o -name "testname-proxy-*" | xargs -r rm -r
|
find ./ -name "127.0.0.1:*" -o -name "localhost:*" -o -name "*.log" -o -name "agent-*" -o -name "*.coverprofile" -o -name "testname-proxy-*" | $(XARGS)
|
||||||
|
|
||||||
docker-clean:
|
docker-clean:
|
||||||
docker images
|
docker images
|
||||||
|
Loading…
x
Reference in New Issue
Block a user