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

Commit db9e2fd

Browse files
committed
The previous build rules caused each binary to be re-linked on every
"make", even if nothing had changed. With this patch, it's only relinked if it's actually updated. //Magnus PS. Yes, the old buildrule for the .rc file is still needed, as it's used by pgevent.rc (or any other binary in the future that would need it's own .rc file) Magnus Hagander
1 parent ce1c202 commit db9e2fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Makefile.global.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*-makefile-*-
2-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.202 2004/10/15 05:11:00 momjian Exp $
2+
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.203 2004/10/15 17:10:58 momjian Exp $
33

44
#------------------------------------------------------------------------------
55
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -403,7 +403,8 @@ PGICOSTR=$(subst /,\/,IDI_ICON ICON \"$(top_builddir)/src/port/$(PGAPPICON).ico\
403403
endif
404404
win32ver.rc: $(top_builddir)/src/port/win32ver.rc
405405
sed -e 's;FILEDESC;$(PGFILEDESC);' -e 's;VFT_APP;$(PGFTYPE);' -e 's;_ICO_;$(PGICOSTR);' $(top_builddir)/src/port/win32ver.rc > win32ver.rc
406-
win32ver.o: win32ver.rc
406+
win32ver.o: $(top_builddir)/src/port/win32ver.rc
407+
sed -e 's;FILEDESC;$(PGFILEDESC);' -e 's;VFT_APP;$(PGFTYPE);' -e 's;_ICO_;$(PGICOSTR);' $(top_builddir)/src/port/win32ver.rc > win32ver.rc
407408
windres -i win32ver.rc -o win32ver.o --include-dir=$(top_builddir)/src/include
408409
rm -f win32ver.rc
409410
endif

0 commit comments

Comments
 (0)