diff options
| author | Bruce Richardson <[email protected]> | 2019-05-17 13:02:31 +0100 |
|---|---|---|
| committer | Thomas Monjalon <[email protected]> | 2019-05-20 23:57:47 +0200 |
| commit | 7e9562a107f170be5979199ae53a9780ce8cb81e (patch) | |
| tree | a5f913d965109a4d8dbbeb686c89cf8a303a8225 /examples/timer | |
| parent | 699729bea97cd8869b1fc877c3fc47d9ae38f469 (diff) | |
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: [email protected]
Signed-off-by: Bruce Richardson <[email protected]>
Acked-by: Luca Boccassi <[email protected]>
Diffstat (limited to 'examples/timer')
| -rw-r--r-- | examples/timer/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/timer/Makefile b/examples/timer/Makefile index 046348fd1c..f49703ff43 100644 --- a/examples/timer/Makefile +++ b/examples/timer/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 |
