]> git.droids-corp.org - dpdk.git/blobdiff - examples/vhost/Makefile
examples: fix make clean when using pkg-config
[dpdk.git] / examples / vhost / Makefile
index 80607b79c5c6e0b8b820c8bc57b74390bfbf7a0e..9c3e0ece08a0bdc6efb838dc85144e2fa3681688 100644 (file)
@@ -39,7 +39,7 @@ build:
 .PHONY: clean
 clean:
        rm -f build/$(APP) build/$(APP)-static build/$(APP)-shared
-       rmdir --ignore-fail-on-non-empty build
+       test -d build && rmdir -p build || true
 
 else # Build using legacy build system