replace "find | xargs" with "find -exec" and "find -delete"
Without -I, xargs splits the input on spaces, which would
make "doas make clean" delete a bit too much if there
was a file named "this will delete .. result.xml".
No visible changes expected after this patch.
@@ -32,9 +32,9 @@ all: test
.PHONY: clean
clean:
- -@find . -name "obj" | xargs rm -rf
- -@find . -name "*.pyc" | xargs rm -rf
- -@find . -name "*results.xml" | xargs rm -rf
+ -@find . -name "obj" -exec rm -rf {} +
+ -@find . -name "*.pyc" -delete
+ -@find . -name "*results.xml" -delete
$(MAKE) -C examples clean
$(MAKE) -C tests clean
