|
4 | 4 | # |
5 | 5 | # Copyright (c) 1994, Regents of the University of California |
6 | 6 | # |
7 | | -# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.64 2000/08/31 16:09:23 petere Exp $ |
| 7 | +# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.65 2000/09/17 13:02:30 petere Exp $ |
8 | 8 | # |
9 | 9 | #------------------------------------------------------------------------- |
10 | 10 |
|
@@ -119,43 +119,43 @@ distprep: |
119 | 119 | install: all installdirs install-bin |
120 | 120 | ifeq ($(PORTNAME), win) |
121 | 121 | ifeq ($(MAKE_DLL), true) |
122 | | -$(INSTALL_DATA) libpostgres.a $(libdir)/libpostgres.a |
| 122 | +$(INSTALL_DATA) libpostgres.a $(DESTDIR)$(libdir)/libpostgres.a |
123 | 123 | endif |
124 | 124 | endif |
125 | 125 | $(MAKE) -C catalog install-bki |
126 | | -$(INSTALL_DATA) libpq/pg_hba.conf.sample $(datadir)/pg_hba.conf.sample |
127 | | -$(INSTALL_DATA) libpq/pg_ident.conf.sample $(datadir)/pg_ident.conf.sample |
128 | | -$(INSTALL_DATA) utils/misc/postgresql.conf.sample $(datadir)/postgresql.conf.sample |
| 126 | +$(INSTALL_DATA) libpq/pg_hba.conf.sample $(DESTDIR)$(datadir)/pg_hba.conf.sample |
| 127 | +$(INSTALL_DATA) libpq/pg_ident.conf.sample $(DESTDIR)$(datadir)/pg_ident.conf.sample |
| 128 | +$(INSTALL_DATA) utils/misc/postgresql.conf.sample $(DESTDIR)$(datadir)/postgresql.conf.sample |
129 | 129 |
|
130 | 130 | installdirs: |
131 | | -$(mkinstalldirs)$(bindir)$(libdir)$(datadir) |
| 131 | +$(mkinstalldirs)$(DESTDIR)$(bindir)$(DESTDIR)$(libdir)$(DESTDIR)$(datadir) |
132 | 132 |
|
133 | 133 | install-bin: postgres$(POSTGRES_IMP) installdirs |
134 | | -$(INSTALL_PROGRAM) postgres$(X)$(bindir)/postgres$(X) |
135 | | -@rm -f$(bindir)/postmaster |
136 | | -ln -s postgres$(X)$(bindir)/postmaster |
| 134 | +$(INSTALL_PROGRAM) postgres$(X)$(DESTDIR)$(bindir)/postgres$(X) |
| 135 | +@rm -f$(DESTDIR)$(bindir)/postmaster |
| 136 | +ln -s postgres$(X)$(DESTDIR)$(bindir)/postmaster |
137 | 137 | ifeq ($(MAKE_EXPORTS), true) |
138 | | -$(INSTALL_DATA) $(POSTGRES_IMP) $(libdir)/$(POSTGRES_IMP) |
| 138 | +$(INSTALL_DATA) $(POSTGRES_IMP) $(DESTDIR)$(libdir)/$(POSTGRES_IMP) |
139 | 139 | endif |
140 | 140 |
|
141 | 141 | .PHONY: install-bin |
142 | 142 |
|
143 | 143 | ########################################################################## |
144 | 144 |
|
145 | 145 | uninstall: |
146 | | -rm -f$(bindir)/postgres$(X)$(bindir)/postmaster |
| 146 | +rm -f$(DESTDIR)$(bindir)/postgres$(X)$(DESTDIR)$(bindir)/postmaster |
147 | 147 | ifeq ($(MAKE_EXPORTS), true) |
148 | | -rm -f $(libdir)/$(POSTGRES_IMP) |
| 148 | +rm -f $(DESTDIR)$(libdir)/$(POSTGRES_IMP) |
149 | 149 | endif |
150 | 150 | ifeq ($(PORTNAME), win) |
151 | 151 | ifeq ($(MAKE_DLL), true) |
152 | | -rm -f $(libdir)/libpostgres.a |
| 152 | +rm -f $(DESTDIR)$(libdir)/libpostgres.a |
153 | 153 | endif |
154 | 154 | endif |
155 | 155 | $(MAKE) -C catalog uninstall-bki |
156 | | -rm -f $(datadir)/pg_hba.conf.sample \ |
157 | | - $(datadir)/pg_ident.conf.sample \ |
158 | | - $(datadir)/postgresql.conf.sample |
| 156 | +rm -f $(DESTDIR)$(datadir)/pg_hba.conf.sample \ |
| 157 | + $(DESTDIR)$(datadir)/pg_ident.conf.sample \ |
| 158 | + $(DESTDIR)$(datadir)/postgresql.conf.sample |
159 | 159 |
|
160 | 160 |
|
161 | 161 | ########################################################################## |
|