1 #----------------------------------------------------------------------------
4 # Postgres documentation installation makefile
7 # Copyright (c) 1994, Regents of the University of California
11 # $Header: /cvsroot/pgsql/doc/Makefile,v 1.12 1998/11/29 05:30:13 tgl Exp $
13 #----------------------------------------------------------------------------
15 PGDOCS= $(POSTGRESDIR)/doc
21 # Pick up Makefile.global from the source area
22 # This is the only resource from the code source area and is optional.
23 # Actually, we want this to get Makefile.custom - thomas 1998-03-01
25 ifneq ($(wildcard $(SRCDIR)/Makefile.global), )
26 include $(SRCDIR)/Makefile.global
29 # Hmm, made this optional but jade _really_ doesn't like them missing
38 MODULES= admin postgres programmer tutorial user
39 TARGETS= $(MODULES:%=%.html)
41 .PRECIOUS: postgres.tex postgres.dvi
42 .PHONY: beforeinstall install all clean distclean
45 if [ ! -d $(PGDOCS) ]; then mkdir $(PGDOCS); fi
51 all:: beforeinstall $(MODULES)
60 $(MAKE) -C $(SRCDIR) install-man
63 # Generic production rules
67 # Put into area pointed to by $(PGDOCS).
68 ## Make a local file to keep track of dependencies,
69 ## if $(PGDOCS) points somewhere else.
70 ## Disable this for now - thomas 1998-03-01
71 # Remove the contents of the target directory
72 # to replace symlinks - thomas 1998-03-01
75 rm -rf ./$@ $(PGDOCS)/$*
76 if test ! -d $(PGDOCS)/$* ; then mkdir $(PGDOCS)/$* ; fi
77 $(GZCAT) $< | (cd $(PGDOCS)/$* ; $(TAR) xf - )