examples: fix make clean when using pkg-config
[dpdk.git] / examples / vhost / Makefile
index 80607b7..9c3e0ec 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