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