From 78344dd672f56b1e0544a9921d47577f84c98b49 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Fri, 18 Oct 2013 16:07:52 +0200 Subject: [PATCH] libports: fix make clean for sdl port --- libports/ports/sdl.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libports/ports/sdl.mk b/libports/ports/sdl.mk index 96546adf27..c1c55e4907 100644 --- a/libports/ports/sdl.mk +++ b/libports/ports/sdl.mk @@ -52,8 +52,9 @@ include/SDL/SDL_platform.h: $(VERBOSE)ln -fs ../../src/lib/sdl/SDL_config_genode.h $(dir $@) clean-sdl: - $(VERBOSE)for i in `find $(CONTRIB_DIR)/$(SDL)/include -name "*.h"`; do \ - rm -f include/SDL/`basename $$i`; done + $(VERBOSE)test -d $(CONTRIB_DIR)/$(SDL) && \ + for i in `find $(CONTRIB_DIR)/$(SDL)/include -name "*.h"`; do \ + rm -f include/SDL/`basename $$i`; done || true $(VERBOSE)rm -f $(addprefix include/SDL/,SDL_config_genode.h SDL_config.h) $(VERBOSE)rmdir include/SDL 2>/dev/null || true $(VERBOSE)rm -rf $(CONTRIB_DIR)/$(SDL)