#
# Copyright (c) 1994, Regents of the University of California
#
-# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.58 2000/07/06 21:33:14 petere Exp $
+# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.59 2000/07/08 02:40:27 tgl Exp $
#
#-------------------------------------------------------------------------
##########################################################################
-install: all installdirs
- $(INSTALL_PROGRAM) postgres$(X) $(bindir)/postgres$(X)
- @rm -f $(bindir)/postmaster
- ln -s postgres$(X) $(bindir)/postmaster
-ifeq ($(MAKE_EXPORTS), true)
- $(INSTALL_DATA) $(POSTGRES_IMP) $(libdir)/$(POSTGRES_IMP)
-endif
+install: all installdirs install-bin
ifeq ($(PORTNAME), win)
ifeq ($(MAKE_DLL), true)
$(INSTALL_DATA) libpostgres.a $(libdir)/libpostgres.a
installdirs:
$(mkinstalldirs) $(bindir) $(libdir) $(datadir)
+install-bin:
+ $(INSTALL_PROGRAM) postgres$(X) $(bindir)/postgres$(X)
+ @rm -f $(bindir)/postmaster
+ ln -s postgres$(X) $(bindir)/postmaster
+ifeq ($(MAKE_EXPORTS), true)
+ $(INSTALL_DATA) $(POSTGRES_IMP) $(libdir)/$(POSTGRES_IMP)
+endif
+
+.PHONY: install installdirs install-bin
##########################################################################