Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5c788e7

Browse files
committed
When in automatic dependency mode, never delete any intermediate
files automatically. Otherwise, the following could happen: Whenstarting from a clean source tree, the first build would delete theintermediate file, but also create the dependency file, whichmentions the intermediate file, thus making it non-intermediate.The second build will then need to rebuild the now non-intermediatemissing file. So the second build will do work even though nothinghad changed. One place where this happens is the .c -> .o -> .sochain for some contrib modules.
1 parentb1e2e9c commit5c788e7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

‎src/Makefile.global.in

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*-makefile-*-
2-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.264 2010/07/06 22:03:05 tgl Exp $
2+
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.265 2010/08/24 18:06:12 petere Exp $
33

44
#------------------------------------------------------------------------------
55
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -580,6 +580,17 @@ clean distclean maintainer-clean: clean-deps
580580
clean-deps:
581581
@rm -rf$(DEPDIR)
582582

583+
# When in automatic dependency mode, never delete any intermediate
584+
# files automatically. Otherwise, the following could happen: When
585+
# starting from a clean source tree, the first build would delete the
586+
# intermediate file, but also create the dependency file, which
587+
# mentions the intermediate file, thus making it non-intermediate.
588+
# The second build will then need to rebuild the now non-intermediate
589+
# missing file. So the second build will do work even though nothing
590+
# had changed. One place where this happens is the .c -> .o -> .so
591+
# chain for some contrib modules.
592+
.SECONDARY:
593+
583594
endif# autodepend
584595

585596

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp