Fix command for fetching snprintf.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 3 Oct 2007 15:04:23 +0000 (15:04 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 3 Oct 2007 15:04:23 +0000 (15:04 +0000)
src/interfaces/ecpg/compatlib/Makefile

index f475317735ba3a8c030d5eb5c806249e4fddd200..8e5a5f8ce20117656415da1e3c7171ccd4386fa0 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Copyright (c) 1994, Regents of the University of California
 #
-# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.31 2007/10/03 14:42:16 meskes Exp $
+# $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/Makefile,v 1.32 2007/10/03 15:04:23 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -20,6 +20,7 @@ DLTYPE= library
 override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
        -I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
 override CFLAGS += $(PTHREAD_CFLAGS)
+
 SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) -lm \
        $(PTHREAD_LIBS)
 
@@ -37,7 +38,7 @@ all: all-lib
 # Shared library stuff
 include $(top_srcdir)/src/Makefile.shlib
 
-snprintf.c: $(top_srcdir)/src/port/%
+snprintf.c: % : $(top_srcdir)/src/port/%
        rm -f $@ && $(LN_S) $< .
 
 # We need several not-quite-identical variants of .DEF files to build libecpg