mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-12 01:18:35 +08:00
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).
87 lines
2.2 KiB
Makefile
87 lines
2.2 KiB
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile for src
|
|
#
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
#
|
|
# $PostgreSQL: pgsql/src/Makefile,v 1.47 2009/08/26 22:24:42 petere Exp $
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
subdir = src
|
|
top_builddir = ..
|
|
include Makefile.global
|
|
|
|
|
|
all install installdirs uninstall distprep:
|
|
$(MAKE) -C port $@
|
|
$(MAKE) -C timezone $@
|
|
$(MAKE) -C backend $@
|
|
$(MAKE) -C backend/utils/mb/conversion_procs $@
|
|
$(MAKE) -C backend/snowball $@
|
|
$(MAKE) -C include $@
|
|
$(MAKE) -C interfaces $@
|
|
$(MAKE) -C bin $@
|
|
$(MAKE) -C pl $@
|
|
$(MAKE) -C makefiles $@
|
|
$(MAKE) -C test/regress $@
|
|
|
|
install: install-local
|
|
|
|
install-local: installdirs-local
|
|
$(INSTALL_DATA) Makefile.global '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global'
|
|
$(INSTALL_DATA) Makefile.port '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.port'
|
|
$(INSTALL_DATA) $(srcdir)/Makefile.shlib '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.shlib'
|
|
$(INSTALL_DATA) $(srcdir)/nls-global.mk '$(DESTDIR)$(pgxsdir)/$(subdir)/nls-global.mk'
|
|
|
|
installdirs: installdirs-local
|
|
|
|
installdirs-local:
|
|
$(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)'
|
|
|
|
uninstall: uninstall-local
|
|
|
|
uninstall-local:
|
|
rm -f $(addprefix '$(DESTDIR)$(pgxsdir)/$(subdir)'/, Makefile.global Makefile.port Makefile.shlib nls-global.mk)
|
|
|
|
clean:
|
|
$(MAKE) -C port $@
|
|
$(MAKE) -C timezone $@
|
|
$(MAKE) -C backend $@
|
|
$(MAKE) -C backend/snowball $@
|
|
$(MAKE) -C include $@
|
|
$(MAKE) -C interfaces $@
|
|
$(MAKE) -C bin $@
|
|
$(MAKE) -C pl $@
|
|
$(MAKE) -C makefiles $@
|
|
$(MAKE) -C test $@
|
|
$(MAKE) -C tutorial NO_PGXS=1 $@
|
|
$(MAKE) -C test/thread $@
|
|
|
|
distclean maintainer-clean:
|
|
$(MAKE) -C port $@
|
|
$(MAKE) -C timezone $@
|
|
$(MAKE) -C backend $@
|
|
$(MAKE) -C backend/snowball $@
|
|
$(MAKE) -C include $@
|
|
$(MAKE) -C interfaces $@
|
|
$(MAKE) -C bin $@
|
|
$(MAKE) -C pl $@
|
|
$(MAKE) -C makefiles $@
|
|
$(MAKE) -C test $@
|
|
$(MAKE) -C tutorial NO_PGXS=1 $@
|
|
$(MAKE) -C test/thread $@
|
|
rm -f Makefile.port Makefile.global
|
|
|
|
coverage:
|
|
$(MAKE) -C timezone $@
|
|
$(MAKE) -C backend $@
|
|
$(MAKE) -C backend/utils/mb/conversion_procs $@
|
|
$(MAKE) -C backend/snowball $@
|
|
$(MAKE) -C interfaces $@
|
|
$(MAKE) -C bin $@
|
|
$(MAKE) -C pl $@
|
|
|
|
|
|
.PHONY: install-local installdirs-local uninstall-local
|