mirror of
https://github.com/weewx/weewx.git
synced 2026-05-19 07:15:18 -04:00
When cleaning, prune to avoid "no such file " error.
This commit is contained in:
4
makefile
4
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
|
||||
|
||||
Reference in New Issue
Block a user