File: Makefile

package info (click to toggle)
postgresql 6.3.2-15
  • links: PTS
  • area: main
  • in suites: slink
  • size: 21,136 kB
  • ctags: 15,441
  • sloc: ansic: 162,182; sh: 5,538; java: 5,143; yacc: 4,891; tcl: 4,778; sql: 4,120; makefile: 2,653; lex: 906; cpp: 839; python: 836; perl: 678; asm: 70; csh: 5; sed: 2
file content (74 lines) | stat: -rw-r--r-- 1,737 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#----------------------------------------------------------------------------
#
# Makefile
#	Postgres documentation installation makefile
#	Thomas Lockhart
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
#    $Header: /usr/local/cvsroot/pgsql/doc/Makefile,v 1.7 1998/04/17 03:58:11 thomas 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

all:: beforeinstall $(MODULES)

clean::
	rm -rf $(MODULES)

distclean::
	$(MAKE) clean

#
# 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
	zcat $< | $(TAR) xf - -C $(PGDOCS)/$*
#	touch ./$*