mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-07 11:09:24 +02:00
> > The patch adds missing the "libpgport.a" file to the installation under > "install-all-headers". It is needed by some contribs. I install the > library in "pkglibdir", but I was wondering whether it should be "libdir"? > I was wondering also whether it would make sense to have a "libpgport.so"? > > It fixes various macros which are used by contrib makefiles, especially > libpq_*dir and LDFLAGS when used under PGXS. It seems to me that they are > needed to > > It adds the ability to test and use PGXS with contribs, with "make > USE_PGXS=1". Without the macro, this is exactly as before, there should be > no difference, esp. wrt the vpath feature that seemed broken by previous > submission. So it should not harm anybody, and it is useful at least to me. > > It fixes some inconsistencies in various contrib makefiles > (useless override, ":=" instead of "="). Fabien COELHO
81 lines
2.0 KiB
Makefile
81 lines
2.0 KiB
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile for src
|
|
#
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
#
|
|
# $PostgreSQL: pgsql/src/Makefile,v 1.34 2004/08/20 20:13:10 momjian Exp $
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
subdir = src
|
|
top_builddir = ..
|
|
include Makefile.global
|
|
|
|
|
|
all install installdirs uninstall dep depend distprep:
|
|
$(MAKE) -C port $@
|
|
$(MAKE) -C timezone $@
|
|
$(MAKE) -C backend $@
|
|
$(MAKE) -C backend/utils/mb/conversion_procs $@
|
|
$(MAKE) -C include $@
|
|
$(MAKE) -C interfaces $@
|
|
$(MAKE) -C bin $@
|
|
$(MAKE) -C pl $@
|
|
$(MAKE) -C makefiles $@
|
|
$(MAKE) -C utils $@
|
|
|
|
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
|
|
|
|
install-all-headers:
|
|
$(MAKE) -C include $@
|
|
$(MAKE) -C port $@
|
|
|
|
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 include $@
|
|
$(MAKE) -C interfaces $@
|
|
$(MAKE) -C bin $@
|
|
$(MAKE) -C pl $@
|
|
$(MAKE) -C makefiles $@
|
|
$(MAKE) -C test $@
|
|
$(MAKE) -C tutorial $@
|
|
$(MAKE) -C utils $@
|
|
$(MAKE) -C tools/thread $@
|
|
|
|
distclean maintainer-clean:
|
|
-$(MAKE) -C port $@
|
|
-$(MAKE) -C timezone $@
|
|
-$(MAKE) -C backend $@
|
|
-$(MAKE) -C include $@
|
|
-$(MAKE) -C interfaces $@
|
|
-$(MAKE) -C bin $@
|
|
-$(MAKE) -C pl $@
|
|
-$(MAKE) -C makefiles $@
|
|
-$(MAKE) -C test $@
|
|
-$(MAKE) -C tutorial $@
|
|
-$(MAKE) -C utils $@
|
|
-$(MAKE) -C tools/thread $@
|
|
rm -f Makefile.port Makefile.global
|
|
|
|
|
|
.PHONY: install-local installdirs-local uninstall-local
|