Skip to content

Commit d4d3b81

Browse files
authored
chore(dev): Don't wipe documentation source files on distclean (#5387)
When running `make distclean` the docs source folder is fully wiped, if not run from a dist tarball. Since the docs are now included in the couchdb source. It seems that it's a leftover, where the docs were in a separate repository.
1 parent 8792316 commit d4d3b81

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ clean:
483483
@rm -f src/couch/priv/couch_js/config.h
484484
@rm -f dev/*.beam dev/devnode.* dev/pbkdf2.pyc log/crash.log
485485
@rm -f src/couch_dist/certs/out
486+
@rm -rf src/docs/build src/docs/.venv
486487
ifeq ($(with_nouveau), true)
487488
@cd nouveau && $(GRADLE) clean
488489
endif
@@ -494,12 +495,10 @@ distclean: clean
494495
@rm -f install.mk
495496
@rm -f config.erl
496497
@rm -f rel/couchdb.config
497-
ifneq ($(IN_RELEASE), true)
498-
# when we are in a release, don’t delete the
499-
# copied sources, generated docs, or fauxton
500498
@rm -rf rel/couchdb
499+
ifneq ($(IN_RELEASE), true)
500+
# when we are in a release, don’t delete Fauxton
501501
@rm -rf share/www
502-
@rm -rf src/docs
503502
endif
504503

505504

Makefile.win

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ clean:
442442
-@rmdir /s/q src\mango\.venv >NUL 2>&1 || true
443443
-@del /f/q src\couch\priv\couch_js\config.h >NUL 2>&1 || true
444444
-@del /f/q dev\boot_node.beam dev\pbkdf2.pyc log\crash.log >NUL 2>&1 || true
445+
-@rmdir /s/q src\docs\build src\docs\.venv >NUL 2>&1 || true
445446
ifeq ($(with_nouveau), true)
446447
@cd nouveau && $(GRADLE) clean
447448
endif
@@ -452,12 +453,10 @@ distclean: clean
452453
-@del install.mk >NUL 2>&1 || true
453454
-@del config.erl >NUL 2>&1 || true
454455
-@del rel\couchdb.config >NUL 2>&1 || true
455-
ifneq ($(IN_RELEASE), true)
456-
# when we are in a release, don’t delete the
457-
# copied sources, generated docs, or fauxton
458456
-@rmdir /s/q rel\couchdb >NUL 2>&1 || true
457+
ifneq ($(IN_RELEASE), true)
458+
# when we are in a release, don’t delete Fauxton
459459
-@rmdir /s/q share\www >NUL 2>&1 || true
460-
-@rmdir /s/q src\docs >NUL 2>&1 || true
461460
endif
462461

463462

0 commit comments

Comments
 (0)