mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-18 18:44:06 +08:00
74618e2b82
* Add option to build with OpenSSL out of the box. Fix thusly exposed bit rot. Although it compiles now, getting this to do something useful is left as an exercise. * Fix Kerberos options to defer checking for required libraries until all the other libraries are checked for. * Change default odbcinst.ini and krb5.srvtab path to PREFIX/etc. * Install work around for Autoconf's install-sh relative path anomaly. Get rid of old INSTL_*_OPTS variables, now that we don't need them anymore. * Use `gunzip -c' instead of g?zcat. Reportedly broke on AIX. * Look for only one of readline.h or readline/readline.h, not both. * Make check for PS_STRINGS cacheable. Don't test for the header files separately. * Disable fcntl(F_SETLK) test on Linux. * Substitute the standard GCC warnings set into CFLAGS in configure, don't add it on in Makefile.global. * Sweep through contrib tree to teach makefiles standard semantics. ... and in completely unrelated news: * Make postmaster.opts arbitrary options-aware. I still think we need to save the environment as well.
79 lines
1.8 KiB
Makefile
79 lines
1.8 KiB
Makefile
#----------------------------------------------------------------------------
|
|
#
|
|
# Makefile
|
|
# Postgres documentation installation makefile
|
|
# Thomas Lockhart
|
|
#
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
#
|
|
#
|
|
# IDENTIFICATION
|
|
# $Header: /cvsroot/pgsql/doc/Makefile,v 1.16 2000/07/09 13:13:55 petere Exp $
|
|
#
|
|
#----------------------------------------------------------------------------
|
|
|
|
PGDOCS= $(POSTGRESDIR)/doc
|
|
SRCDIR= ../src
|
|
|
|
TAR= tar
|
|
|
|
# Pick up Makefile.global from the source area
|
|
# This is the only resource from the code source area and is optional.
|
|
# Actually, we want this to get Makefile.custom - thomas 1998-03-01
|
|
|
|
ifneq ($(wildcard $(SRCDIR)/Makefile.global), )
|
|
include $(SRCDIR)/Makefile.global
|
|
endif
|
|
|
|
# Hmm, made this optional but jade _really_ doesn't like them missing
|
|
# - thomas 1998-03-01
|
|
ifneq ($(HDSL), )
|
|
HTMLOPTS= -d $(HDSL)
|
|
endif
|
|
ifneq ($(PDSL), )
|
|
PRINTOPTS= -d $(PDSL)
|
|
endif
|
|
|
|
MODULES= admin postgres programmer tutorial user
|
|
TARGETS= $(MODULES:%=%.html)
|
|
|
|
.PRECIOUS: postgres.tex postgres.dvi
|
|
.PHONY: beforeinstall install all clean distclean
|
|
|
|
beforeinstall::
|
|
-@if [ ! -d $(PGDOCS) ]; then mkdir $(PGDOCS); fi
|
|
|
|
install::
|
|
$(MAKE) all
|
|
$(MAKE) man
|
|
|
|
all:: beforeinstall $(MODULES)
|
|
|
|
clean::
|
|
rm -rf $(MODULES)
|
|
|
|
distclean::
|
|
$(MAKE) clean
|
|
|
|
man::
|
|
-@if test ! -d $(POSTMANDIR) ; then mkdir $(POSTMANDIR) ; fi
|
|
gunzip -c man.tar.gz | (cd $(POSTMANDIR) ; $(TAR) xf - )
|
|
|
|
#
|
|
# Generic production rules
|
|
#
|
|
|
|
# Unpack tar file
|
|
# Put into area pointed to by $(PGDOCS).
|
|
## Make a local file to keep track of dependencies,
|
|
## if $(PGDOCS) points somewhere else.
|
|
## Disable this for now - thomas 1998-03-01
|
|
# Remove the contents of the target directory
|
|
# to replace symlinks - thomas 1998-03-01
|
|
|
|
%: %.tar.gz
|
|
rm -rf ./$@ $(PGDOCS)/$*
|
|
if test ! -d $(PGDOCS)/$* ; then mkdir $(PGDOCS)/$* ; fi
|
|
gunzip -c $< | (cd $(PGDOCS)/$* ; $(TAR) xf - )
|
|
# touch ./$*
|