diff options
| author | Tom Lane | 1998-10-18 19:41:00 +0000 |
|---|---|---|
| committer | Tom Lane | 1998-10-18 19:41:00 +0000 |
| commit | e1942f5b9e1c71e3f5e912ab9ffeb1e34339845d (patch) | |
| tree | bd94766d228875c33dc468f3deb2c53c5dec69c3 /src/interfaces/libpq | |
| parent | 14f4ca009c259330dbb43b1cccc49c9fd7a98c58 (diff) | |
Clean up shared makefile install procedures.
Get the permissions right, don't overwrite real files with symlinks, etc.
plpgsql and odbc still aren't fully up to speed, but at least they don't crash and burn...
Diffstat (limited to 'src/interfaces/libpq')
| -rw-r--r-- | src/interfaces/libpq/Makefile.in | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/interfaces/libpq/Makefile.in b/src/interfaces/libpq/Makefile.in index ed2a5610908..7d9d8b57417 100644 --- a/src/interfaces/libpq/Makefile.in +++ b/src/interfaces/libpq/Makefile.in @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.38 1998/10/14 16:13:03 thomas Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.39 1998/10/18 19:40:55 tgl Exp $ # #------------------------------------------------------------------------- @@ -117,6 +117,7 @@ ifeq ($(PORTNAME), hpux) CFLAGS += $(CFLAGS_SL) endif + all: libpq.a $(shlib) libpq.a: $(OBJS) @@ -158,7 +159,7 @@ $(shlib): $(OBJS) .PHONY: beforeinstall-headers install-headers -.PHONY: install install-libpq install-shlib-dep +.PHONY: install install-libpq install-shlib install: install-headers install-libpq $(install-shlib-dep) @@ -228,20 +229,26 @@ install-libpq: libpq.a install-shlib: $(shlib) $(INSTALL) $(INSTL_SHLIB_OPTS) $(shlib) $(LIBDIR)/$(shlib) - rm -f $(LIBDIR)/lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION) - rm -f $(LIBDIR)/lib$(NAME)$(DLSUFFIX) - cd $(LIBDIR) && $(LN_S) -f $(shlib) lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION) - cd $(LIBDIR) && $(LN_S) -f $(shlib) lib$(NAME)$(DLSUFFIX) - + if [ "$(shlib)" != "lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)" ]; then \ + cd $(LIBDIR); \ + rm -f lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION); \ + $(LN_S) $(shlib) lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION); \ + fi + if [ "$(shlib)" != "lib$(NAME)$(DLSUFFIX)" ]; then \ + cd $(LIBDIR); \ + rm -f lib$(NAME)$(DLSUFFIX); \ + $(LN_S) $(shlib) lib$(NAME)$(DLSUFFIX); \ + fi -depend dep: - $(CC) -MM $(CFLAGS) *.c >depend .PHONY: clean clean: rm -f libpq.a $(shlib) $(OBJS) rm -f dllist.c common.c wchar.c conv.c +depend dep: + $(CC) -MM $(CFLAGS) *.c >depend + ifeq (depend,$(wildcard depend)) include depend endif |
