44#
55# Copyright (c) 1994, Regents of the University of California
66#
7- # $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.58 2000/07/06 21:33:14 petere Exp $
7+ # $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.59 2000/07/08 02:40:27 tgl Exp $
88#
99# -------------------------------------------------------------------------
1010
@@ -113,13 +113,7 @@ $(top_builddir)/src/include/utils/fmgroids.h: utils/fmgroids.h
113113
114114# #########################################################################
115115
116- install : all installdirs
117- $(INSTALL_PROGRAM ) postgres$(X ) $(bindir ) /postgres$(X )
118- @rm -f $(bindir ) /postmaster
119- ln -s postgres$(X ) $(bindir ) /postmaster
120- ifeq ($(MAKE_EXPORTS ) , true)
121- $(INSTALL_DATA) $(POSTGRES_IMP) $(libdir)/$(POSTGRES_IMP)
122- endif
116+ install : all installdirs install-bin
123117ifeq ($(PORTNAME ) , win)
124118ifeq ($(MAKE_DLL ) , true)
125119 $(INSTALL_DATA) libpostgres.a $(libdir)/libpostgres.a
@@ -133,6 +127,15 @@ endif
133127installdirs :
134128 $(mkinstalldirs ) $(bindir ) $(libdir ) $(datadir )
135129
130+ install-bin :
131+ $(INSTALL_PROGRAM ) postgres$(X ) $(bindir ) /postgres$(X )
132+ @rm -f $(bindir ) /postmaster
133+ ln -s postgres$(X ) $(bindir ) /postmaster
134+ ifeq ($(MAKE_EXPORTS ) , true)
135+ $(INSTALL_DATA) $(POSTGRES_IMP) $(libdir)/$(POSTGRES_IMP)
136+ endif
137+
138+ .PHONY : install installdirs install-bin
136139
137140# #########################################################################
138141
0 commit comments