libports: fix make clean for sdl port

This commit is contained in:
Christian Helmuth 2013-10-18 16:07:52 +02:00
parent 69263f6593
commit 78344dd672
1 changed files with 3 additions and 2 deletions

View File

@ -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)