When cleaning, prune to avoid "no such file " error.

This commit is contained in:
Tom Keffer
2023-03-20 16:58:38 -07:00
parent 901caa8add
commit ca3bf05326

View File

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