Content-Length: 285299 | pFad | http://github.com/postgrespro/postgres_cluster/commit/3690019da8b6993c4a13298851fa4bca1ef17edc

92 We don't need to rebuild objfiles.txt every time an object file changes. · postgrespro/postgres_cluster@3690019 · GitHub
Skip to content

Commit 3690019

Browse files
committed
We don't need to rebuild objfiles.txt every time an object file changes.
So only rebuild when a makefile changes (which presumably defines the file list somewhere), and only touch the file if an object changed. The touch is necessary so the parent make knows something changed and ultimately rebuilds postgres.
1 parent a1d5d85 commit 3690019

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/backend/common.mk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Common make rules for backend
33
#
4-
# $PostgreSQL: pgsql/src/backend/common.mk,v 1.2 2008/02/25 17:55:42 petere Exp $
4+
# $PostgreSQL: pgsql/src/backend/common.mk,v 1.3 2008/02/26 07:20:38 petere Exp $
55
#
66

77
# When including this file, set OBJS to the object files created in
@@ -26,9 +26,12 @@ endif
2626
SUBSYS.o: $(SUBDIROBJS) $(OBJS)
2727
$(LD) $(LDREL) $(LDOUT) $@ $^
2828

29-
objfiles.txt: $(SUBDIROBJS) $(OBJS)
29+
objfiles.txt:: $(MAKEFILE_LIST)
3030
( $(if $(SUBDIROBJS),cat $(SUBDIROBJS); )echo $(addprefix $(subdir)/,$(OBJS)) ) >$@
3131

32+
objfiles.txt:: $(SUBDIROBJS) $(OBJS)
33+
touch $@
34+
3235
# make function to expand objfiles.txt contents
3336
expand_subsys = $(foreach file,$(filter %/objfiles.txt,$(1)),$(patsubst ../../src/backend/%,%,$(addprefix $(top_builddir)/,$(shell cat $(file))))) $(filter-out %/objfiles.txt,$(1))
3437

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/3690019da8b6993c4a13298851fa4bca1ef17edc

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy