pgxs.mk: remove unreachable rule for deleting regress.def.
authorTom Lane <[email protected]>
Fri, 20 Jun 2025 16:12:29 +0000 (12:12 -0400)
committerTom Lane <[email protected]>
Fri, 20 Jun 2025 16:12:29 +0000 (12:12 -0400)
We never create regress.def, and if we did this code would fail to
delete it, because "win" is not the correct PORTNAME for Windows.

This thinko seems to have originated in commit 7a6b562fd from 1999,
although it got moved around multiple times since then.

Author: Christoph Berg <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Discussion: https://postgr.es/m/[email protected]

src/makefiles/pgxs.mk

index 0de3737e789b4b2ed30a24b80e4429c410895d33..039cee3dfe5d97c08b51d24b917cc3a9de29ed52 100644 (file)
@@ -376,10 +376,7 @@ endif
 ifdef REGRESS
 # things created by various check targets
    rm -rf $(pg_regress_clean_files)
-ifeq ($(PORTNAME), win)
-   rm -f regress.def
 endif
-endif # REGRESS
 ifdef TAP_TESTS
    rm -rf tmp_check/
 endif