mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Update of install-sh, mkinstalldirs, and associated configury
Update install-sh to that from Autoconf 2.63, plus our Darwin-specific changes (which I simplified a bit). install-sh is now able to install multiple files in one run, so we could simplify our makefiles sometime. install-sh also now has a -d option to create directories, so we don't need mkinstalldirs anymore. Use AC_PROG_MKDIR_P in configure.in, so we can use mkdir -p when available instead of install-sh -d. For consistency with the rest of the world, the corresponding make variable has been renamed from $(mkinstalldirs) to $(MKDIR_P).
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
# $PostgreSQL: pgsql/src/makefiles/Makefile,v 1.2 2005/12/09 21:19:36 petere Exp $
|
||||
# $PostgreSQL: pgsql/src/makefiles/Makefile,v 1.3 2009/08/26 22:24:43 petere Exp $
|
||||
|
||||
subdir = src/makefiles
|
||||
top_builddir = ../..
|
||||
@ -9,7 +9,7 @@ install: all installdirs
|
||||
$(INSTALL_DATA) $(srcdir)/pgxs.mk '$(DESTDIR)$(pgxsdir)/$(subdir)/'
|
||||
|
||||
installdirs:
|
||||
$(mkinstalldirs) '$(DESTDIR)$(pgxsdir)/$(subdir)'
|
||||
$(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)'
|
||||
|
||||
uninstall:
|
||||
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/pgxs.mk'
|
||||
|
@ -1,6 +1,6 @@
|
||||
# PGXS: PostgreSQL extensions makefile
|
||||
|
||||
# $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.16 2009/07/08 13:47:29 petere Exp $
|
||||
# $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.17 2009/08/26 22:24:43 petere Exp $
|
||||
|
||||
# This file contains generic rules to build many kinds of simple
|
||||
# extension modules. You only need to set a few variables and include
|
||||
@ -137,21 +137,21 @@ endif # MODULE_big
|
||||
|
||||
installdirs:
|
||||
ifneq (,$(DATA)$(DATA_built))
|
||||
$(mkinstalldirs) '$(DESTDIR)$(datadir)/contrib'
|
||||
$(MKDIR_P) '$(DESTDIR)$(datadir)/contrib'
|
||||
endif
|
||||
ifneq (,$(DATA_TSEARCH))
|
||||
$(mkinstalldirs) '$(DESTDIR)$(datadir)/tsearch_data'
|
||||
$(MKDIR_P) '$(DESTDIR)$(datadir)/tsearch_data'
|
||||
endif
|
||||
ifneq (,$(MODULES))
|
||||
$(mkinstalldirs) '$(DESTDIR)$(pkglibdir)'
|
||||
$(MKDIR_P) '$(DESTDIR)$(pkglibdir)'
|
||||
endif
|
||||
ifdef DOCS
|
||||
ifdef docdir
|
||||
$(mkinstalldirs) '$(DESTDIR)$(docdir)/contrib'
|
||||
$(MKDIR_P) '$(DESTDIR)$(docdir)/contrib'
|
||||
endif # docdir
|
||||
endif # DOCS
|
||||
ifneq (,$(PROGRAM)$(SCRIPTS)$(SCRIPTS_built))
|
||||
$(mkinstalldirs) '$(DESTDIR)$(bindir)'
|
||||
$(MKDIR_P) '$(DESTDIR)$(bindir)'
|
||||
endif
|
||||
|
||||
ifdef MODULE_big
|
||||
|
Reference in New Issue
Block a user