aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-02-27 01:33:43 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-02-27 01:33:43 +0000
commited0e2923542fc63dd236e5e539472926a8449e4a (patch)
tree7dbbb3b6f307b12d026e9c551871b50275e0363b /src
parent22cab261313407f1a65450b848fe2109f36c9193 (diff)
downloadpostgresql-ed0e2923542fc63dd236e5e539472926a8449e4a.tar.gz
postgresql-ed0e2923542fc63dd236e5e539472926a8449e4a.zip
Clean up dependencies for version.o.
This avoids the useless rebuild of pg_version that used to happen on each build or install pass.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_version/Makefile.in21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/bin/pg_version/Makefile.in b/src/bin/pg_version/Makefile.in
index 516a07f498a..90271536bad 100644
--- a/src/bin/pg_version/Makefile.in
+++ b/src/bin/pg_version/Makefile.in
@@ -1,31 +1,30 @@
#-------------------------------------------------------------------------
#
-# Makefile.inc--
+# Makefile.in--
# Makefile for bin/pg_version
#
-# Copyright (c) 1994, Regents of the University of California
-#
+# Portions Copyright (c) 1996-2000, PostgreSQL, Inc
+# Portions Copyright (c) 1994, Regents of the University of California
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/bin/pg_version/Attic/Makefile.in,v 1.6 1999/01/17 06:19:14 momjian Exp $
+# $Header: /cvsroot/pgsql/src/bin/pg_version/Attic/Makefile.in,v 1.7 2000/02/27 01:33:43 tgl Exp $
#
#-------------------------------------------------------------------------
SRCDIR= ../..
-include ../../Makefile.global
-
-OBJS= pg_version.o ../../utils/version.o @STRERROR2@
+include $(SRCDIR)/Makefile.global
CFLAGS+= -I$(SRCDIR)/include
+OBJS= pg_version.o $(SRCDIR)/utils/version.o @STRERROR2@
+
all: pg_version
-pg_version: submake $(OBJS)
+pg_version: $(OBJS)
$(CC) -o pg_version $(OBJS) $(LDFLAGS)
-.PHONY: submake
-submake:
- $(MAKE) -C ../../utils version.o
+$(SRCDIR)/utils/version.o: $(SRCDIR)/utils/version.c $(SRCDIR)/include/version.h
+ $(MAKE) -C $(SRCDIR)/utils version.o
install: pg_version
$(INSTALL) $(INSTL_EXE_OPTS) pg_version$(X) $(BINDIR)/pg_version$(X)