Clean up dependencies for version.o.
This avoids the useless rebuild of pg_version that used to happen on each build or install pass.
This commit is contained in:
parent
22cab26131
commit
ed0e292354
@ -1,31 +1,30 @@
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Makefile.inc--
|
# Makefile.in--
|
||||||
# Makefile for bin/pg_version
|
# 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
|
# 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= ../..
|
SRCDIR= ../..
|
||||||
include ../../Makefile.global
|
include $(SRCDIR)/Makefile.global
|
||||||
|
|
||||||
OBJS= pg_version.o ../../utils/version.o @STRERROR2@
|
|
||||||
|
|
||||||
CFLAGS+= -I$(SRCDIR)/include
|
CFLAGS+= -I$(SRCDIR)/include
|
||||||
|
|
||||||
|
OBJS= pg_version.o $(SRCDIR)/utils/version.o @STRERROR2@
|
||||||
|
|
||||||
all: pg_version
|
all: pg_version
|
||||||
|
|
||||||
pg_version: submake $(OBJS)
|
pg_version: $(OBJS)
|
||||||
$(CC) -o pg_version $(OBJS) $(LDFLAGS)
|
$(CC) -o pg_version $(OBJS) $(LDFLAGS)
|
||||||
|
|
||||||
.PHONY: submake
|
$(SRCDIR)/utils/version.o: $(SRCDIR)/utils/version.c $(SRCDIR)/include/version.h
|
||||||
submake:
|
$(MAKE) -C $(SRCDIR)/utils version.o
|
||||||
$(MAKE) -C ../../utils version.o
|
|
||||||
|
|
||||||
install: pg_version
|
install: pg_version
|
||||||
$(INSTALL) $(INSTL_EXE_OPTS) pg_version$(X) $(BINDIR)/pg_version$(X)
|
$(INSTALL) $(INSTL_EXE_OPTS) pg_version$(X) $(BINDIR)/pg_version$(X)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user