Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a18490b

Browse files
committed
Add global .SECONDARY: target to not allow make to delete intermediate
target files in implicit rule chains. That might have been a cool idea but it seems to be too buggy to work, as it caused spurious recompiles in several places.
1 parent 6be6a18 commit a18490b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Makefile.global.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*-makefile-*-
2-
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.107 2000/10/29 16:13:28 petere Exp $
2+
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.108 2000/11/03 20:27:40 petere Exp $
33

44
#------------------------------------------------------------------------------
55
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -28,6 +28,10 @@ all:
2828
# started to update the file.
2929
.DELETE_ON_ERROR:
3030

31+
# Do not let 'make' delete intermediate files. This might have been
32+
# a sensible idea, but it's too buggy.
33+
.SECONDARY:
34+
3135
# PostgreSQL version number
3236
VERSION = @VERSION@
3337

src/pl/tcl/Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Makefile for the pltcl shared object
44
#
5-
# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.24 2000/10/20 21:04:17 petere Exp $
5+
# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.25 2000/11/03 20:27:40 petere Exp $
66
#
77
#-------------------------------------------------------------------------
88

@@ -87,10 +87,6 @@ ifdef EXPSUFF
8787
INFILES+= $(DLOBJS:.o=$(EXPSUFF))
8888
endif
8989

90-
# Prevent removal of pltcl.o, being an intermediate file. This would
91-
# not be wrong in general, but for some reason the next make run will
92-
# not realize this and rebuild it.
93-
.SECONDARY: pltcl.o
9490

9591
# Provide dummy targets for the case where we can't build the shared library.
9692

@@ -119,4 +115,4 @@ Makefile.tcldefs: mkMakefile.tcldefs.sh
119115
$(SHELL) $< '$(TCL_CONFIG_SH)' '$@'
120116

121117
clean distclean maintainer-clean:
122-
rm -f $(INFILES) *.o Makefile.tcldefs
118+
rm -f $(INFILES) pltcl.o Makefile.tcldefs

0 commit comments

Comments
 (0)