summaryrefslogtreecommitdiff
path: root/examples/l3fwd-vf
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-05-17 13:02:31 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-05-20 23:57:47 +0200
commit7e9562a107f170be5979199ae53a9780ce8cb81e (patch)
treea5f913d965109a4d8dbbeb686c89cf8a303a8225 /examples/l3fwd-vf
parent699729bea97cd8869b1fc877c3fc47d9ae38f469 (diff)
downloaddpdk-7e9562a107f170be5979199ae53a9780ce8cb81e.zip
dpdk-7e9562a107f170be5979199ae53a9780ce8cb81e.tar.gz
dpdk-7e9562a107f170be5979199ae53a9780ce8cb81e.tar.xz
examples: fix make clean when using pkg-config
The "make clean" command had a number of issues: - the "--ignore-fail-on-non-empty" flag is not present on BSD - the call to remove the build folder would fail if there was no build folder present. These are fixed by only removing the build folder if it exists, and by using -p flag to rmdir in place of --ignore-fail-on-non-empty Fixes: 22119c4591a0 ("examples: use pkg-config in makefiles") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'examples/l3fwd-vf')
-rw-r--r--examples/l3fwd-vf/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/l3fwd-vf/Makefile b/examples/l3fwd-vf/Makefile
index cc93603..8ad2fbc 100644
--- a/examples/l3fwd-vf/Makefile
+++ b/examples/l3fwd-vf/Makefile
@@ -35,7 +35,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