From ca3bf05326bd05afc8116fe5bc76c71c57f73e77 Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Mon, 20 Mar 2023 16:58:38 -0700 Subject: [PATCH] When cleaning, prune to avoid "no such file " error. --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 094b8c5e..2d9a4d08 100644 --- a/makefile +++ b/makefile @@ -102,7 +102,7 @@ info: clean: find bin -name "*.pyc" -exec rm {} \; - find bin -name "__pycache__" -exec rm -rf {} \; + find bin -name "__pycache__" -prune -exec rm -rf {} \; rm -rf $(BLDDIR) $(DSTDIR) rm -rf bin/wee_resources/bin rm -rf bin/wee_resources/docs @@ -202,7 +202,7 @@ src-tarball: $(DSTDIR)/$(SRCPKG) $(DSTDIR)/$(SRCPKG): mkdir -p $(BLDDIR)/weewx-$(VERSION) - rsync -ar ./ $(BLDDIR)/weewx-$(VERSION) --exclude-from .gitignore --exclude .gitignore \ + rsync -ar ./ $(BLDDIR)/weewx-$(VERSION) --exclude __pycache__ --exclude .gitignore \ --exclude .git --exclude tests --exclude dist --exclude build --exclude .editorconfig \ --exclude poetry.lock --exclude pyproject.toml --exclude mkdocs.yml --exclude .idea \ --exclude .github