Improve build performance and clean behavior

- Remove test/deps from 'make clean' to prevent accidental 2.8GB cleanup
- 'make clean' now preserves test dependencies, speeding up development workflow
- 'make cleanall' still removes test dependencies as intended
- In test/deps/Makefile, make 'clean' an alias of 'cleanall' since incremental
  clean was practically redundant due to build targets forcing full rebuilds

This change:
- Reduces typical 'make clean' time by ~30 minutes
- Prevents accidental loss of compiled test dependencies (2.8GB)
- Makes development workflow more efficient while preserving explicit control

Resolves issue with repeated MySQL connector compilation during development.
pull/5289/head
Rene Cannao 4 months ago
parent 9c3f6b0aa5
commit 2ecda902e6

@ -374,7 +374,6 @@ clean:
cd lib && ${MAKE} clean
cd src && ${MAKE} clean
cd test/tap && ${MAKE} clean
cd test/deps && ${MAKE} clean
rm -f pkgroot || true
.PHONY: cleandeps

@ -64,12 +64,7 @@ cleanall:
.PHONY: clean
.SILENT: clean
clean:
cd mariadb-connector-c/mariadb-connector-c && $(MAKE) --no-print-directory clean || true
cd mariadb-connector-c/mariadb-connector-c && rm -f CMakeCache.txt || true
cd mysql-connector-c/mysql-connector-c && $(MAKE) --no-print-directory clean || true
cd mysql-connector-c/mysql-connector-c && rm -f CMakeCache.txt || true
cd mysql-connector-c/mysql-connector-c && rm -f libmysql/libmysqlclient.a || true
cd mysql-connector-c-8.4.0/mysql-connector-c && $(MAKE) --no-print-directory clean || true
cd mysql-connector-c-8.4.0/mysql-connector-c && rm -f CMakeCache.txt || true
cd mysql-connector-c-8.4.0/mysql-connector-c && rm -f libmysql/libmysqlclient.a || true
clean: cleanall
# NOTE: clean is now an alias of cleanall since the incremental clean
# was practically redundant due to build targets forcing full rebuilds anyway

Loading…
Cancel
Save