examples: fix make clean when using pkg-config
[dpdk.git] / examples / ip_pipeline / Makefile
index 409966a..acd93e2 100644 (file)
@@ -55,7 +55,7 @@ build:
 .PHONY: clean
 clean:
        rm -f build/$(APP)* build/*.o
-       rmdir --ignore-fail-on-non-empty build
+       test -d build && rmdir -p build || true
 
 else