aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-10-15 17:10:58 +0000
committerBruce Momjian <bruce@momjian.us>2004-10-15 17:10:58 +0000
commitdb9e2fd0a9144707055ed382f184f5a9c11aafff (patch)
tree064aaab4c28f2db85bf99835e14339e36c908ce5
parentce1c20248d26cbab7e36f4365021b7d007cdb589 (diff)
downloadpostgresql-db9e2fd0a9144707055ed382f184f5a9c11aafff.tar.gz
postgresql-db9e2fd0a9144707055ed382f184f5a9c11aafff.zip
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
-rw-r--r--src/Makefile.global.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index 8f52a8dc87e..467575bdaba 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -1,5 +1,5 @@
# -*-makefile-*-
-# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.202 2004/10/15 05:11:00 momjian Exp $
+# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.203 2004/10/15 17:10:58 momjian Exp $
#------------------------------------------------------------------------------
# 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\
endif
win32ver.rc: $(top_builddir)/src/port/win32ver.rc
sed -e 's;FILEDESC;$(PGFILEDESC);' -e 's;VFT_APP;$(PGFTYPE);' -e 's;_ICO_;$(PGICOSTR);' $(top_builddir)/src/port/win32ver.rc > win32ver.rc
-win32ver.o: win32ver.rc
+win32ver.o: $(top_builddir)/src/port/win32ver.rc
+ sed -e 's;FILEDESC;$(PGFILEDESC);' -e 's;VFT_APP;$(PGFTYPE);' -e 's;_ICO_;$(PGICOSTR);' $(top_builddir)/src/port/win32ver.rc > win32ver.rc
windres -i win32ver.rc -o win32ver.o --include-dir=$(top_builddir)/src/include
rm -f win32ver.rc
endif