mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-07 08:07:30 +08:00
Oleg Bartunov and Teodor Sigaev, but I did a lot of editorializing, so anything that's broken is probably my fault. Documentation is nonexistent as yet, but let's land the patch so we can get some portability testing done.
78 lines
2.0 KiB
Makefile
78 lines
2.0 KiB
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile for src
|
|
#
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
#
|
|
# $PostgreSQL: pgsql/src/Makefile,v 1.42 2007/08/21 01:11:12 tgl 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:
|
|
$(mkinstalldirs) '$(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
|
|
|
|
|
|
.PHONY: install-local installdirs-local uninstall-local
|