From ed0e2923542fc63dd236e5e539472926a8449e4a Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 27 Feb 2000 01:33:43 +0000 Subject: [PATCH] Clean up dependencies for version.o. This avoids the useless rebuild of pg_version that used to happen on each build or install pass. --- src/bin/pg_version/Makefile.in | 21 ++++++++++----------- 1 file 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) -- 2.39.5